We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2505e21 commit 8377c51Copy full SHA for 8377c51
doc/api/typescript.md
@@ -68,6 +68,19 @@ By intentionally not supporting syntaxes that require JavaScript code
68
generation, and by replacing inline types with whitespace, Node.js can run
69
TypeScript code without the need for source maps.
70
71
+The suggested `tsconfig.json` settings for type stripping are:
72
+
73
+```json
74
+{
75
+ "compilerOptions": {
76
+ "module": "nodenext",
77
+ "allowImportingTsExtensions": true,
78
+ "rewriteRelativeImportExtensions": true,
79
+ "verbatimModuleSyntax": true
80
+ }
81
+}
82
+```
83
84
### Determining module system
85
86
Node.js supports both [CommonJS][] and [ES Modules][] syntax in TypeScript
0 commit comments