All Projects → hatashiro → tinypack

hatashiro / tinypack

Licence: MIT license
A simple TypeScript module bundler

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to tinypack

Browserify
browser-side require() the node.js way
Stars: ✭ 13,929 (+24336.84%)
Mutual labels:  module-bundler
Minipack
📦 A simplified example of a modern module bundler written in JavaScript
Stars: ✭ 2,625 (+4505.26%)
Mutual labels:  module-bundler
Parcel
The zero configuration build tool for the web. 📦🚀
Stars: ✭ 39,670 (+69496.49%)
Mutual labels:  module-bundler
Microbundle
📦 Zero-configuration bundler for tiny modules.
Stars: ✭ 6,622 (+11517.54%)
Mutual labels:  module-bundler
Esbuild
An extremely fast JavaScript and CSS bundler and minifier
Stars: ✭ 29,374 (+51433.33%)
Mutual labels:  module-bundler
Webpack
A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
Stars: ✭ 60,034 (+105222.81%)
Mutual labels:  module-bundler
webpack-demo
Introduction to Webpack 4
Stars: ✭ 26 (-54.39%)
Mutual labels:  module-bundler

Tinypack

A simple TypeScript module bundler, inspired by minipack

Features

  • 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

Install

Install globally with npm

npm install -g @utatti/tinypack

Run with tinypack.

Manual install from source

git clone https://github.com/utatti/tinypack.git
cd tinypack
yarn # or `npm i` should work too

Run bin/tinypack in the project root.

How to use

tinypack path/to/entry.ts

Play with examples

tinypack examples/01-simple # stdout
tinypack examples/01-simple | node # run

How does it work?

Use the code, Luke!

References

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].