esbuild-plugin-progress
v1.3.10
Published
A plugin to add a progress spinner to esbuild
Downloads
1,684
Maintainers
Readme
esbuild-plugin-progress
A plugin to add a progress spinner to esbuild.
Install it with esbuild as a development dependency. Node.js 16 or newer is required.
npm install --save-dev esbuild esbuild-plugin-progressUse the plugin in your esbuild build script:
const esbuild = require('esbuild');
const progress = require('esbuild-plugin-progress');
esbuild.build({
entryPoints: ['./src/index.js'],
bundle: true,
outfile: './public/bundle.js',
plugins: [progress()],
});The spinner reports when the build starts and shows whether esbuild finished successfully or returned errors. Pass message to change the text shown while a build runs:
plugins: [progress({ message: 'Bundling' })]