Skip to content

Commit 4528038

Browse files
committed
Target ESNext / NodeNext
1 parent 9ca9fe8 commit 4528038

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tsconfig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
/* Visit https://aka.ms/tsconfig.json to read more about this file */
33
"$schema": "https://json.schemastore.org/tsconfig",
44
"compilerOptions": {
5-
"module": "commonjs",
6-
"target": "ES2021",
7-
"lib": ["ES2021"],
5+
"target": "ESNext",
6+
"lib": ["ESNext"],
87
"baseUrl": ".", // Base directory to resolve non-absolute module names.
98
"rootDir": "src",
109
"outDir": "out",
@@ -32,7 +31,8 @@
3231
"exactOptionalPropertyTypes": true, // Force exact optional types. (Aka. undefined needs to be added to optionals)
3332

3433
/* Module Resolution Options */
35-
"moduleResolution": "node", // Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6).
34+
"module": "NodeNext",
35+
"moduleResolution": "nodenext", // Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6).
3636
"resolveJsonModule": true, // Allows importing modules with a .json extension.
3737
"paths": {
3838
// A series of entries which re-map imports to lookup locations relative to the 'baseUrl'.

0 commit comments

Comments
 (0)