An esbuild plugin which uses tsc to compile typescript files.
Installations
npm install esbuild-plugin-tsc-2
Developer Guide
Typescript
Yes
Module System
CommonJS
Node Version
14.19.2
NPM Version
6.14.17
Score
71.5
Supply Chain
84.8
Quality
75
Maintenance
100
Vulnerability
99.6
License
Contributors
Unable to fetch Contributors
Languages
TypeScript (62.23%)
JavaScript (37.77%)
validate.email 🚀
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Developer
KennethWKZ
Download Statistics
Total Downloads
215
Last Day
1
Last Week
3
Last Month
17
Last Year
54
GitHub Statistics
MIT License
18 Commits
4 Branches
1 Contributors
Updated on Feb 17, 2023
Bundle Size
5.36 kB
Minified
2.22 kB
Minified + Gzipped
Package Meta Information
Latest Version
0.3.2
Package Id
esbuild-plugin-tsc-2@0.3.2
Unpacked Size
18.89 kB
Size
5.15 kB
File Count
22
NPM Version
6.14.17
Node Version
14.19.2
Published on
Feb 17, 2023
Total Downloads
Cumulative downloads
Total Downloads
215
Last Day
0%
1
Compared to previous day
Last Week
50%
3
Compared to previous week
Last Month
466.7%
17
Compared to previous month
Last Year
-41.3%
54
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
esbuild-plugin-tsc
An esbuild plugin which uses tsc to compile typescript files.
Why?
Esbuild natively supports typescript files - so if you are not using exotic typescript features this plugin is not meant for you!
I wanted to use typescripts emitDecoratorMetadata
feature, which is not supported by esbuild. If you are only using typescript decorators in some files, this plugin allows you to convert only the files containing decorators and lets esbuild handle all other files.
If for some reason you want to use typescripts compiler for all files you can simple set the force
option.
Basic Usage
-
Install this plugin in your project:
1npm install --save-dev esbuild-plugin-tsc typescript
-
Add this plugin to your esbuild build script:
Javascript:
1+const esbuildPluginTsc = require('esbuild-plugin-tsc'); 2 ... 3 esbuild.build({ 4 ... 5 plugins: [ 6+ esbuildPluginTsc(), 7 ], 8 })
Typescript:
1+import { esbuildPluginTsc } from 'esbuild-plugin-tsc'; 2 ... 3 esbuild.build({ 4 ... 5 plugins: [ 6+ esbuildPluginTsc(), 7 ], 8 })
Config
1esbuildPluginTsc({ 2 // If empty, uses tsconfig.json 3 tsconfigPath?: string, 4 // If true, force compilation with tsc 5 force?: boolean, 6 // If true, enables tsx file support 7 tsx?: boolean 8})

No vulnerabilities found.

No security vulnerabilities found.