Skip to content

Commit 9dff30e

Browse files
committed
Upgrade target to es2022
1 parent ec40afa commit 9dff30e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/build_package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async function main() {
8181
tsconfig: path.join(import.meta.dirname, '../tsconfig.packages.json'),
8282
// The target should be kept in sync with `tsconfig.packages.json` file.
8383
// In the future, I hope the target will be read from the `tsconfig.packages.json` file, but for now we need to specify it manually.
84-
target: 'es2021',
84+
target: 'es2022',
8585
watch: isWatch,
8686
plugins: [
8787
// Since minifying files is not configurable per file, we need to use a custom plugin to handle CSS minification.

tsconfig.packages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"strict": true,
1010
"strictPropertyInitialization": false,
1111
"//": "The target should be kept in sync with `bin/build_packages.ts` file.",
12-
"target": "es2021",
12+
"target": "es2022",
1313
"removeComments": true,
1414
"outDir": "types",
1515
"baseUrl": ".",

0 commit comments

Comments
 (0)