A simple TypeScript module bundler, inspired by minipack
- Minimal dependency (only the TypeScript Compiler API)
- Type check
- Bundle TypeScript modules (only ECMAScript Modules)
- Remove duplication for the same module
- Resolve circular dependency
-
node_modules
resolution
npm install -g @utatti/tinypack
Run with tinypack
.
git clone https://github.com/utatti/tinypack.git
cd tinypack
yarn # or `npm i` should work too
Run bin/tinypack
in the project root.
tinypack path/to/entry.ts
Play with examples
tinypack examples/01-simple # stdout
tinypack examples/01-simple | node # run
Use the code, Luke!
- Minipack: A simplified example of a modern module bundler written in JavaScript
- The TypeScript Compiler API