bundlify is a simplistic JavaScript bundler that given a project with multiple files and external dependencies, will read JavaScript files, resolve and bundle the code into a single output file.
- fork & clone the repo
- run
npm install - create a new folder named
targetin the root or replace the contents of the currently presenttargetdir - Add an
index.jsfile as well as multiple other JS module files inside target dir - Run
npm run bundlifyin the terminal - The above command will bundle the JS files inside target dir and output them into a
dist/index.jsfile - Now run
node dist/index.jsto execute the bundled output file
- Can bundle multiple JS files into a single one
- supports both module and commonjs i.e. you'll be able to use both
importandrequirekeywords and it can successfully able to transpile - Can detect circular dependency and warns when detected the same
- It cannot resolve external dependencies at the moment (that's a WIP)
Built with <3 by Pritish .aka CIPHERTron