A zero-configuration CLI tool for bundling TypeScript source code into a single JavaScript file for browser consumption. Version 1.0.18 supports bundling from .ts, .tsx, or tsconfig.json, with features like asset embedding (text, JSON, base64, buffer, CSS), custom transform pipelines, and global export/injection. It differs from webpack/rollup by focusing solely on TypeScript bundling without configuration, and can work with TypeScript compiler versions as low as 1.8.0. The project appears to be in maintenance mode with no recent releases.
npm install typescript-bundleNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Bundle a simple TypeScript module with tsc-bundle into a single JavaScript file.
Upgrade TypeScript to >=2.2.0 or avoid asset imports.
Run output through terser or uglify-js.
Use options as documented: --outFile, --target, etc.
Add all entry .ts files to the files array in tsconfig.json.
Add a declaration file (e.g., globals.d.ts) with: declare module '*.txt' { const content: string; export default content; }Use ES module import/export syntax instead of CommonJS.
Double-check the file path; use absolute path or correct relative path.
No dependency data recorded yet.
No traffic data recorded yet.