Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

esbuild-plugin-ts

jahirvidrio219GPL-3.00.1.1-rev-1.0TypeScript support: included

esbuild plugin that integrates TypeScript's exotic features, such as type checking and emit decorators

esbuild, esbuild-plugin, tsc, typescript, path-alias, decorators, type-checking

readme

[!CAUTION] This is in-development and is not feature complete.

esbuild-plugin-ts

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.

js-standard-style

Motivation

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.

Features

  • <input disabled="" type="checkbox"> Declaration Files: Generates .d.ts declaration files.
  • <input disabled="" type="checkbox"> Path Aliases: Resolves path aliases defined in tsconfig.json.
  • <input disabled="" type="checkbox"> Decorator Metadata: Emits decorator's metadata.
  • <input disabled="" type="checkbox"> Type Checking: Runs tsc in a worker thread to ensure type checking.