@utatti/tinypack
v0.2.0
Published
A simple TypeScript module bundler
Readme
Tinypack
A simple TypeScript module bundler, inspired by minipack
Features
- [x] Minimal dependency (only the TypeScript Compiler API)
- [x] Type check
- [x] Bundle TypeScript modules (only ECMAScript Modules)
- [x] Remove duplication for the same module
- [x] Resolve circular dependency
- [x]
node_modulesresolution
Install
Install globally with npm
npm install -g @utatti/tinypackRun with tinypack.
Manual install from source
git clone https://github.com/utatti/tinypack.git
cd tinypack
yarn # or `npm i` should work tooRun bin/tinypack in the project root.
How to use
tinypack path/to/entry.tsPlay with examples
tinypack examples/01-simple # stdout
tinypack examples/01-simple | node # runHow does it work?
Use the code, Luke!
References
- Minipack: A simplified example of a modern module bundler written in JavaScript
- The TypeScript Compiler API
