Skip to content

Commit c292546

Browse files
committed
Improve babel config
1 parent a526726 commit c292546

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

babel.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
presets: [
3-
['@babel/env', { targets: { browsers: ['> 1%', 'last 2 versions', 'not ie <= 11', 'not dead'] }, useBuiltIns: false, modules: false }]
3+
['@babel/env', { targets: { browsers: ['> 1%', 'last 2 versions', 'not ie <= 11', 'not android < 5', 'not dead'] }, useBuiltIns: false, modules: false }]
44
],
55
plugins: [
66
['@babel/transform-runtime', { corejs: 3 }]

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"@babel/plugin-transform-runtime": "^7.21.4",
4545
"@babel/preset-env": "^7.21.4",
4646
"@babel/preset-react": "^7.18.6",
47+
"ajv": "^8.12.0",
4748
"babel-loader": "^9.1.2",
4849
"babel-preset-minify": "^0.5.2",
4950
"cross-env": "^7.0.3",

webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const isLocal = !isProduction && Boolean(LOCAL);
1414
const isAnalyzer = isProduction && Boolean(ANALYZER);
1515
const publicPath = isProduction ? '/' + (PUBLIC_PATH ? PUBLIC_PATH + '/' : '') : '/';
1616

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

1919
module.exports = {
2020
entry: './src/index.js',

0 commit comments

Comments
 (0)