esbuild-plugin-ts is an esbuild plugin that integrates TypeScript's exotic features, such as type checking, decorator metadata emission, and path alias resolution. Current version is 0.1.1-rev-1.0, released as in-development and not feature complete. It leverages the TypeScript compiler (tsc) under the hood to address esbuild's limitations in handling TypeScript while remaining fast via worker threads. Key differentiators: focuses on bridging gaps for advanced TypeScript features like decorators and path aliases, unlike simpler plugins that only provide basic transpilation.
npm install esbuild-plugin-tsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage of esbuild-plugin-ts to bundle a TypeScript entry point with type checking and advanced transforms.
Ensure a tsconfig.json exists in the project root, or pass options with a custom tsconfig path.
Check the README for feature status; do not rely on unimplemented features like path alias resolution or decorator metadata.
Avoid running multiple builds simultaneously, or serialize builds.
Manually check tsc output or use a separate type checking step.
Run `npm install esbuild-plugin-ts` or `yarn add esbuild-plugin-ts`.
Use `import esbuildPluginTs from 'esbuild-plugin-ts'` and call as `esbuildPluginTs()`.
Create a tsconfig.json file or pass `{ tsconfig: 'path/to/tsconfig.json' }` in the options.