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 @@ -81,6 +81,7 @@ but we recommend version 5.8 or newer with the following `tsconfig.json` setting
8181``` json
8282{
8383 "compilerOptions" : {
84+ "noEmit" : true , // Optional - see note below
8485 "target" : " esnext" ,
8586 "module" : " nodenext" ,
8687 "rewriteRelativeImportExtensions" : true ,
@@ -90,6 +91,10 @@ but we recommend version 5.8 or newer with the following `tsconfig.json` setting
9091}
9192```
9293
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+
9398### Determining module system
9499
95100Node.js supports both [ CommonJS] [ ] and [ ES Modules] [ ] syntax in TypeScript
You can’t perform that action at this time.
0 commit comments