Skip to content

Commit

Permalink
chore: Update target to es2021 (#3988)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekashida authored Feb 8, 2024
1 parent 88eb835 commit ac65140
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 18 deletions.
2 changes: 1 addition & 1 deletion packages/@lwc/aria-reflection/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../../tsconfig.json",

"compilerOptions": {
"lib": ["dom", "es2018"]
"lib": ["dom", "es2021"]
},

"include": ["src/"]
Expand Down
4 changes: 0 additions & 4 deletions packages/@lwc/babel-plugin-component/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "../../../tsconfig.json",

"compilerOptions": {
"lib": ["es2018"]
},

"include": ["src/"]
}
2 changes: 1 addition & 1 deletion packages/@lwc/engine-core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../../tsconfig.json",

"compilerOptions": {
"lib": ["dom", "es2018"]
"lib": ["dom", "es2021"]
},

"include": ["src/"]
Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/engine-dom/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../../tsconfig.json",

"compilerOptions": {
"lib": ["dom", "es2018"]
"lib": ["dom", "es2021"]
},

"include": ["src/"]
Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/engine-server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../../tsconfig.json",

"compilerOptions": {
"lib": ["dom", "es2018"]
"lib": ["dom", "es2021"]
},

"include": ["src/"]
Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/features/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../../tsconfig.json",

"compilerOptions": {
"lib": ["dom", "es2018"]
"lib": ["dom", "es2021"]
},

"include": ["src/"]
Expand Down
4 changes: 0 additions & 4 deletions packages/@lwc/signals/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "../../../tsconfig.json",

"compilerOptions": {
"lib": ["es2018"]
},

"include": ["src/"]
}
2 changes: 1 addition & 1 deletion packages/@lwc/synthetic-shadow/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../../tsconfig.json",

"compilerOptions": {
"lib": ["dom", "es2018"]
"lib": ["dom", "es2021"]
},

"include": ["src/"]
Expand Down
2 changes: 1 addition & 1 deletion packages/@lwc/wire-service/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../../tsconfig.json",

"compilerOptions": {
"lib": ["dom", "es2018"]
"lib": ["dom", "es2021"]
},

"include": ["src/"]
Expand Down
1 change: 0 additions & 1 deletion scripts/rollup/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ function sharedPlugins() {

return [
typescript({
target: 'es2017',
tsconfig: path.join(packageRoot, 'tsconfig.json'),
noEmitOnError: !watchMode, // in watch mode, do not exit with an error if typechecking fails
...(watchMode && {
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"moduleResolution": "node",
"esModuleInterop": true,

"target": "es2018",
"lib": ["es2018"],
"target": "es2021",
"lib": ["es2021"],

// Disable automatic inclusion of @types packages
"types": ["node", "jest"],
Expand Down

0 comments on commit ac65140

Please sign in to comment.