Grunt plugin to run esbuild builds. Version 1.0.0+ actively maintained. Configuration is passed directly to esbuild's build function, which must be provided via options.buildFunction. Unlike other Grunt bundler plugins, it does not wrap esbuild's API, giving full access to esbuild options. Requires Node.js and a compatible Grunt >=1. Releases are irregular; no known breaking changes yet.
npm install grunt-esbuildNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure Grunt to run esbuild with a single bundle target.
Set options.buildFunction to require('esbuild').build in your Gruntfile.Use entryPoints: ['src/main.js'] instead of entryPoints: 'src/main.js'.
Use a separate watch task (e.g., grunt-contrib-watch) to trigger rebuilds.
Add grunt.loadNpmTasks('grunt-esbuild') or use load-grunt-tasks in Gruntfile.Set options.buildFunction = require('esbuild').build in grunt.initConfig.Change entryPoints: 'src/main.js' to entryPoints: ['src/main.js'].