Skip to content

Commit 3faf014

Browse files
committed
update target and module options tsconfig.json
The target version has also been changed from `ESNext` to `ES2021` because we need to ensure that we only use features that are supported by the Node.js version that is bundled with VS Code. Node.js 20.x supports all ES2021 features. https://compat-table.github.io/compat-table/es2016plus/#node20_0 The module options have also been updated to stop typescript from enforcing unexpected module resolution rules.
1 parent 5a44088 commit 3faf014

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tsconfig.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"compilerOptions": {
3-
"module": "commonjs",
4-
"target": "ESNext",
3+
"moduleResolution": "bundler",
4+
"target": "ES2021",
55
"outDir": "out",
6-
"esModuleInterop": true,
7-
"lib": ["esnext"],
6+
"lib": ["ES2021"],
87
"sourceMap": true,
98
"rootDir": "src",
109

0 commit comments

Comments
 (0)