Skip to content

Commit

Permalink
Fix build for old browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmatter committed Dec 1, 2023
1 parent db3db02 commit 149efd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/plugin-syntax-typescript": "^7.23.3",
"@babel/plugin-transform-class-properties": "^7.23.3",
"@babel/plugin-transform-logical-assignment-operators": "^7.23.4",
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
Expand Down
3 changes: 3 additions & 0 deletions tools/lib/babelConfig.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ module.exports = legacy => {
},
], // Chrome 80, Safari 13.1
["@babel/plugin-transform-class-properties", { loose: true }], // Chrome 74, Safari 14.1

// Used in nanoevents and maybe other dependencies
"@babel/plugin-transform-logical-assignment-operators", // Chrome 85, Firefox 79, Safari 14
);
}

Expand Down

0 comments on commit 149efd4

Please sign in to comment.