The `if-tsb` package, currently at version 1.1.2, is a TypeScript-focused bundler emphasizing speed and extensive configuration via `tsconfig.json`. It aims to provide a fast solution for compiling and bundling TypeScript projects, producing deployable JavaScript output. While a specific release cadence isn't published, its 1.x.x versioning suggests active development. Key differentiators include its deep integration with `tsconfig.json` for defining single or multiple entry points, custom output paths using template variables (e.g., `[name].bundled.js`), and a broad set of `bundlerOptions`. These options offer fine-grained control over aspects like module format (including non-standard ones like 'none', 'private'), external bundling, source map generation, and pre-import optimizations. It provides both a command-line interface for common bundling tasks and a programmatic API for integration into custom build workflows, distinguishing itself from general-purpose bundlers that typically rely on separate configuration files or a more standard set of module transformation options.
npm install if-tsbVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to install `if-tsb` and use its command-line interface to bundle a TypeScript project using configuration defined directly within `tsconfig.json`.
Prefer `import { bundle, bundleWatch } from 'if-tsb';` for programmatic API usage in TypeScript or ESM projects.Be aware that `if-tsb` extends `tsconfig.json` with its own specific configuration fields. These fields are parsed only by `if-tsb` itself. When integrating with other tools, separate configurations might be necessary.
Carefully review the documentation for each `bundlerOptions.module` value to understand its specific output format and implications for your project's runtime environment and module loading strategy. For standard module outputs, use 'commonjs' if supported or rely on the default if it aligns with standard ES module output.
Install the package globally with `npm install -g if-tsb` for CLI usage, or locally with `npm install --save-dev if-tsb` for programmatic usage.
Ensure you are using `import { bundle } from 'if-tsb';` and that your project is configured for ES Modules if using programmatic API.Verify that the path provided in the `entry` field of `tsconfig.json` or as a command-line argument (`if-tsb ./path/to/entry.ts`) is correct and the file exists relative to the execution context.
Refer to the `if-tsb` documentation for the correct `tsconfig.json` `entry` formats (e.g., string for single entry, array for multiple, object for specific outputs).
No dependency data recorded yet.