/karna

Primary LanguageJavaScriptISC LicenseISC

Karna
sun

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

⚠️ Before running the tests you have to install the dependencies of the import dependencies fixture.

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