| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| 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 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments