diff --git a/package.json b/package.json index 7cb4e360f2..3100557bdd 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/tools/lib/babelConfig.cjs b/tools/lib/babelConfig.cjs index 32d97a8f15..f2499b0f8c 100644 --- a/tools/lib/babelConfig.cjs +++ b/tools/lib/babelConfig.cjs @@ -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 ); }