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 41b3016Copy full SHA for 41b3016
doc/api/typescript.md
@@ -68,6 +68,18 @@ 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
+ "allowImportingTsExtensions": true,
77
+ "rewriteRelativeImportExtensions": true,
78
+ "verbatimModuleSyntax": true,
79
+ }
80
+}
81
+```
82
83
### Determining module system
84
85
Node.js supports both [CommonJS][] and [ES Modules][] syntax in TypeScript
0 commit comments