Browse Source

Target oldest browsers possible

jsbundling-with-webpack-modernizr
baarkerlounger 3 years ago
parent
commit
fb38a65969
  1. 3
      .browserslistrc
  2. 18
      babel.config.js

3
.browserslistrc

@ -1,3 +0,0 @@
defaults
ie 11
ie 10

18
babel.config.js

@ -18,15 +18,7 @@ module.exports = function(api) {
return { return {
presets: [ presets: [
isTestEnv && [ isTestEnv && [
'@babel/preset-env', '@babel/preset-env'
{
targets: {
node: 'current',
browsers: [
'ie >= 10'
]
}
}
], ],
(isProductionEnv || isDevelopmentEnv) && [ (isProductionEnv || isDevelopmentEnv) && [
'@babel/preset-env', '@babel/preset-env',
@ -35,13 +27,7 @@ module.exports = function(api) {
useBuiltIns: 'entry', useBuiltIns: 'entry',
corejs: 3, corejs: 3,
modules: false, modules: false,
exclude: ['transform-typeof-symbol'], exclude: ['transform-typeof-symbol']
targets: {
node: 'current',
browsers: [
'ie >= 10'
]
}
} }
] ]
].filter(Boolean), ].filter(Boolean),

Loading…
Cancel
Save