An extremely lightweight bundler that does nothing but merge your js files using commonjs.
npm install --save-dev jsbun
(or) globally:
npm install -g jsbun
The best example is the npm test scenario used in this project.
jsbun -o bundled.js js/index.js
Optional arguments are:
--watch (-w) [pattern] rerun when the files change (default pattern is '**/*.js')
--output (-o) fileName output the bundle to a file instead of to stdout
const jsbun = require('jsbun');
const bundled = await jsbun('./js/index.js');
console.log(bundled);