We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2505e21 commit bccd5b0Copy full SHA for bccd5b0
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