Skip to content
/ tsb Public

TypeScript/JavaScript module bundler for ESModule

Notifications You must be signed in to change notification settings

keroxp/tsb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version

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