Skip to content

Commit c8e6259

Browse files
committed
build: target ES2019 in TypeScript
1 parent c92c7ff commit c8e6259

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

test/tsconfig.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
"extends": "../tsconfig.json",
33
"include": ["./unit/**/*.ts", "./*.ts"],
44
"compilerOptions": {
5-
"skipLibCheck": true
5+
"skipLibCheck": true,
6+
"lib": [
7+
"ES2019",
8+
// only used in tests
9+
"ES2021.WeakRef"
10+
]
611
},
712
"compileOnSave": false
813
}

tsconfig.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"root": true,
33
"compilerOptions": {
44
"allowJs": false,
5-
"target": "es2020",
5+
"target": "ES2019",
66
"declaration": true,
77
"module": "commonjs",
88
"moduleResolution": "node",
@@ -19,11 +19,7 @@
1919
"incremental": true,
2020
"sourceMap": true,
2121
"esModuleInterop": true,
22-
"lib": [
23-
"ES2020",
24-
// only used in tests
25-
"ES2021.WeakRef"
26-
]
22+
"lib": ["ES2019"]
2723
},
2824
"compileOnSave": true
2925
}

0 commit comments

Comments
 (0)