Commit 5c9f1a4 1 parent 75f11ae commit 5c9f1a4 Copy full SHA for 5c9f1a4
File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ but we recommend version 5.8 or newer with the following `tsconfig.json` setting
81
81
``` json
82
82
{
83
83
"compilerOptions" : {
84
+ "noEmit" : true , // Optional - see note below
84
85
"target" : " esnext" ,
85
86
"module" : " nodenext" ,
86
87
"rewriteRelativeImportExtensions" : true ,
@@ -90,6 +91,10 @@ but we recommend version 5.8 or newer with the following `tsconfig.json` setting
90
91
}
91
92
```
92
93
94
+ > \[ !NOTE]
95
+ > Use the ` noEmit ` option if you intend to only execute ` *.ts ` files, for example a build script.
96
+ > You won't need this flag if you intend to distribute ` *.js ` files for performance reasons.
97
+
93
98
### Determining module system
94
99
95
100
Node.js supports both [ CommonJS] [ ] and [ ES Modules] [ ] syntax in TypeScript
You can’t perform that action at this time.
0 commit comments