Socket
Book a DemoInstallSign in
Socket

esbuild-tsc

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-tsc

An esbuild plugin which uses tsc to compile typescript files

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
0
Created
Source

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.

Keywords

esbuild

FAQs

Package last updated on 19 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts