esbuild-tsc
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

esbuild-tsc

NPM Version NPM Downloads CircleCI Test Coverage

About

An ESBuild plugin which uses tsc to compile typescript files

Motivation

Esbuild natively supports typescript files, but not TypeScript decorators. TypeScript decorators are different from EcmaScript decorators. If TypeScript decorators are used in your project, tsc should be used to transpile.

Installation

npm install --save-dev esbuild-tsc typescript

Basic Usage

Add this plugin to your esbuild build script:

Typescript:

import esbuildPluginTsc from 'esbuild-tsc';

...
esbuild.build({
  ...
  plugins: [
    esbuildPluginTsc(options),
  ],
});

Options

_tsconfigPath [string] _: Path of the tsconfig json file. filter [RegExp | Function]: A RegExp or function to filter files.

Package Sidebar

Install

npm i esbuild-tsc

Weekly Downloads

26

Version

1.2.0

License

MIT

Unpacked Size

10.9 kB

Total Files

8

Last publish

Collaborators

  • erayhanoglu