Caution
This is in-development and is not feature complete.
An esbuild plugin that integrates TypeScript’s advanced features, such as type checking, emitting decorator metadata and more. It leverages the TypeScript compiler (tsc
) under the hood to address the limitations of esbuild in handling TypeScript.
While esbuild is renowned for its speed and efficiency, it lacks full support for some of TypeScript’s advanced features. This includes type checking, emit decorator metadata and path alias resolution. These features are crucial for many TypeScript projects, especially those utilizing decorators and complex type definitions.
The goal of esbuild-plugin-ts
is to bridge this gap by leveraging the TypeScript compiler (tsc
) under the hood. This integration ensures that you can benefit from esbuild’s fast builds while still having access to the complete set of TypeScript functionalities.
- Declaration Files: Generates
.d.ts
declaration files. - Path Aliases: Resolves path aliases defined in
tsconfig.json
. - Decorator Metadata: Emits decorator's metadata.
- Type Checking: Runs
tsc
in a worker thread to ensure type checking.