A simple bundler in the works.
Features
- Babel preset-env applied by default ✔️
- Supports JS, JSON and JSX files ✔️
- Build is minified using Terser ✔️
- Automatic resolution of extensionless imports ✔️
Conventions
- Transforms external lib imports/exports to CommonJS
Testing & Validation
To run the tests, simply run the npm run test
command.
End To End
Additionally there is an e2e
script that runs a real scenario for a bundler: Build, Ship to the browser, Validate the result.
Steps ahead & known issues that will be fixed
- Definitions e.g. (As webpack Define plugin)
- Browser package.json field as an object
- Bundle and run a React/ReactDOM project