diff --git a/babel.config.js b/babel.config.js index 4c2fe5682b..4d3d6fab48 100644 --- a/babel.config.js +++ b/babel.config.js @@ -13,6 +13,7 @@ module.exports = (api) => { include: [ 'transform-numeric-separator', 'transform-optional-chaining', + 'transform-logical-assignment-operators', 'transform-nullish-coalescing-operator', 'transform-class-properties', ], diff --git a/package.json b/package.json index 7a6dee1311..8ebd1acf48 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "private": true, "dependencies": { "@babel/core": "^7.22.1", + "@babel/plugin-transform-logical-assignment-operators": "^7.25.7", "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.3", "@babel/plugin-transform-react-inline-elements": "^7.21.0", "@babel/plugin-transform-runtime": "^7.22.4", diff --git a/yarn.lock b/yarn.lock index 9aeb2b02a8..2ea2a674c5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2789,6 +2789,7 @@ __metadata: resolution: "@mastodon/mastodon@workspace:." dependencies: "@babel/core": "npm:^7.22.1" + "@babel/plugin-transform-logical-assignment-operators": "npm:^7.25.7" "@babel/plugin-transform-nullish-coalescing-operator": "npm:^7.22.3" "@babel/plugin-transform-react-inline-elements": "npm:^7.21.0" "@babel/plugin-transform-runtime": "npm:^7.22.4"