tsb

TypeScript/JavaScript module bundler for ESModule

Downloads
52
Stars
11
Committers
2

tsb

TypeScript/JavaScript module bundler for ESModule

Description

tsb is module bundler for ECMAScript. It bundles TypeScript/JavaScript modules built with pure ESModule.

Concept

  • 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.

Install

Via yarn

$ yarn global add @keroxp/tsb

Via npm

$ npm i -g @keroxp/tsb

or

$ npx @keroxp/tsb

Usage

$ tsb ./example/server.ts > bundle.js

License

MIT