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
7676``` json
7777{
7878 "compilerOptions" : {
79+ "noEmit" : true , // Optional - see note below
7980 "target" : " esnext" ,
8081 "module" : " nodenext" ,
8182 "rewriteRelativeImportExtensions" : true ,
@@ -85,6 +86,10 @@ but we recommend version 5.8 or newer with the following `tsconfig.json` setting
8586}
8687```
8788
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+
8893### Determining module system
8994
9095Node.js supports both [ CommonJS] [ ] and [ ES Modules] [ ] syntax in TypeScript
You can’t perform that action at this time.
0 commit comments