Skip to content

Commit

Permalink
Improve babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
Brugarolas committed Apr 16, 2023
1 parent a526726 commit c292546
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
presets: [
['@babel/env', { targets: { browsers: ['> 1%', 'last 2 versions', 'not ie <= 11', 'not dead'] }, useBuiltIns: false, modules: false }]
['@babel/env', { targets: { browsers: ['> 1%', 'last 2 versions', 'not ie <= 11', 'not android < 5', 'not dead'] }, useBuiltIns: false, modules: false }]
],
plugins: [
['@babel/transform-runtime', { corejs: 3 }]
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@babel/plugin-transform-runtime": "^7.21.4",
"@babel/preset-env": "^7.21.4",
"@babel/preset-react": "^7.18.6",
"ajv": "^8.12.0",
"babel-loader": "^9.1.2",
"babel-preset-minify": "^0.5.2",
"cross-env": "^7.0.3",
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const isLocal = !isProduction && Boolean(LOCAL);
const isAnalyzer = isProduction && Boolean(ANALYZER);
const publicPath = isProduction ? '/' + (PUBLIC_PATH ? PUBLIC_PATH + '/' : '') : '/';

const babelTargets = ['> 1%', 'last 2 versions', 'not ie <= 11', 'not dead'];
const babelTargets = ['> 1%', 'last 2 versions', 'not ie <= 11', 'not android < 5', 'not dead'];

module.exports = {
entry: './src/index.js',
Expand Down

0 comments on commit c292546

Please sign in to comment.