esbuild-plugin-time

1.0.0 • Public • Published

esbuild-plugin-time

simple time measuring of the build process

Installation

npm i --save-dev esbuild-plugin-time

Usage

import esbuild from 'esbuild';
import time from 'esbuild-plugin-time';

esbuild.build({
    entryPoints: ['./src/index.js'],
    bundle:      true,
    outfile:     './dist/index.js',
    plugins:     [
        time(),
    ]
});
import esbuild from 'esbuild';
import time from 'esbuild-plugin-time';

esbuild.build({
    entryPoints: ['./src/index.js'],
    bundle:      true,
    outfile:     './dist/index.js',
    plugins:     [
        time('Bundle A'),
    ]
});

esbuild.build({
    entryPoints: ['./src/stuff.js'],
    bundle:      true,
    outfile:     './dist/stuff.js',
    plugins:     [
        time('Bundle B'),
    ]
});

Readme

Keywords

Package Sidebar

Install

npm i esbuild-plugin-time

Weekly Downloads

1,164

Version

1.0.0

License

MIT

Unpacked Size

2.27 kB

Total Files

3

Last publish

Collaborators

  • dasred