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 ec51e9c commit 766c721Copy full SHA for 766c721
tsconfig.json
@@ -6,6 +6,14 @@
6
],
7
8
"compilerOptions": {
9
+ /*
10
+ Version 1.0.1 of the base `@tsconfig/node20/tsconfig.json` sets [`moduleResolution`][TSConfig moduleResolution] to `node`,
11
+ which stands for the CommonJS system of Node.js and doesn't work when Node.js treats files with the extension `.js` as ECMAScript modules.
12
+ https://github.com/tsconfig/bases/issues/67
13
+ https://github.com/tsconfig/bases/issues/121
14
+ https://github.com/tsconfig/bases/pull/197
15
+ */
16
+ "moduleResolution": "Node16",
17
"outDir": "dist",
18
},
19
@@ -25,4 +33,5 @@
25
33
/*
26
34
[TSConfig files]: https://www.typescriptlang.org/tsconfig#files
27
35
[TSConfig include]: https://www.typescriptlang.org/tsconfig#include
36
+[TSConfig moduleResolution]: https://www.typescriptlang.org/tsconfig#moduleResolution
28
37
*/
0 commit comments