Skip to content

Commit

Permalink
browserslist: turn off Babel loose config [s]
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Aug 10, 2022
1 parent bbe47b9 commit 02eb848
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions config/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ module.exports = function (api) {
const plugins = [
['relay', { compat: true, schema: 'schema.json' }],
'babel-plugin-optimize-clsx',
['@babel/plugin-proposal-class-properties', { loose: true }],
['@babel/plugin-proposal-object-rest-spread', { loose: true }],
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-object-rest-spread',
[
'@babel/plugin-transform-runtime',
{
Expand Down
4 changes: 1 addition & 3 deletions webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@ module.exports = {
[
'@babel/preset-env',
{
// loose is needed by older Androids < 4.3 and IE10
loose: true,
modules: false,
},
],
Expand All @@ -199,7 +197,7 @@ module.exports = {
},
],
'@babel/plugin-syntax-dynamic-import',
['@babel/plugin-proposal-class-properties', { loose: true }],
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-json-strings',
],
},
Expand Down

0 comments on commit 02eb848

Please sign in to comment.