TypeScript/JavaScript module bundler for ESModule
tsb
is module bundler for ECMAScript. It bundles TypeScript/JavaScript modules built with pure ESModule.
- TypeScript first
- tsb bundles and transpiles ts/js files with TypeScript Compiler API
- ESM only
- tsb only supports ECMAScript that are written with pure ESModule (import/export)
- CommonJS,AMD (require/exports) are NOT supported
- URL import support
- tsb will automatically fetch URL import/export and bundles all dependencies and stores caches.
Via yarn
$ yarn global add @keroxp/tsb
Via npm
$ npm i -g @keroxp/tsb
or
$ npx @keroxp/tsb
$ tsb ./example/server.ts > bundle.js
MIT