don't pass core-js through babel

this is what caused the bundle not to load in IE11
This commit is contained in:
Bruno Windels 2020-08-07 10:08:31 +02:00
parent 395bd8e8d4
commit 8a9bc315e6

View file

@ -115,6 +115,7 @@ async function buildJsLegacy(bundleName) {
// compile down to whatever IE 11 needs // compile down to whatever IE 11 needs
const babelPlugin = babel.babel({ const babelPlugin = babel.babel({
babelHelpers: 'bundled', babelHelpers: 'bundled',
exclude: 'node_modules/**',
presets: [ presets: [
[ [
"@babel/preset-env", "@babel/preset-env",