esbuild-plugin-time
v1.0.0
Published
a time plugin for esbuild
Downloads
8,030
Readme
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'),
]
});