diff --git a/babel.config.js b/babel.config.js index d3ef79c..9348a43 100644 --- a/babel.config.js +++ b/babel.config.js @@ -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 }] diff --git a/package.json b/package.json index 650ac20..6c701ec 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/webpack.config.js b/webpack.config.js index b697c42..abf8489 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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',