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