diff --git a/.browserslistrc b/.browserslistrc index 6367e4d358..0cc2f25aa3 100644 --- a/.browserslistrc +++ b/.browserslistrc @@ -7,4 +7,7 @@ not dead not OperaMini all [development] -supports es6-module +last 1 chrome version +last 1 edge version +last 1 firefox version +last 1 safari version 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 4eb95d4389..70db368a20 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 86fbc7e184..37815924d3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2835,6 +2835,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"