Grunt plugin to bundle ES6 modules into a single file for browsers or CommonJS for Node.js. Version 0.5.0 is the latest stable release (last updated 2017). Relies on es6-module-transpiler and a custom npm resolver. Differentiators: supports jsnext:main for publishing ES6 modules via npm, multiple output formats (bundle, CJS, system.register), and source maps. Development has been inactive since 2017; consider modern alternatives like rollup or webpack.
npm install grunt-bundle-jsnext-libNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Gruntfile configuration with bundle_jsnext and cjs_jsnext tasks.
Migrate to a modern bundler like Rollup, Webpack, or Babel.
Use bundle_jsnext for browser global or cjs_jsnext for CommonJS. No UMD output.
Ensure dest is a file path for bundle_jsnext and a directory path for cjs_jsnext.
Switch to a transpiler that supports ES modules natively.
Ensure grunt.loadNpmTasks('grunt-bundle-jsnext-lib') is in Gruntfile and npm install grunt-bundle-jsnext-lib --save-dev is run.Change dest to a file path (e.g., 'dist/library.js') for bundle_jsnext.
Run npm install es6-module-transpiler --save-dev alongside this plugin.