Explorar el Código

fix webpack polyfills (#9735) (#9738)

webpack polyfills did not work because useBuiltIns: 'entry' expects a
explicit core-js import. Changed it to 'usage' which does not require
these explicit imports and polyfills based on browserslist.

As a result, the built index.js now went from 128kB to 192kB.

Ref: https://babeljs.io/docs/en/babel-preset-env#usebuiltins
tags/v1.11.0-rc2
silverwind hace 4 años
padre
commit
3e23dad075
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      webpack.config.js

+ 1
- 1
webpack.config.js Ver fichero

@@ -36,7 +36,7 @@ module.exports = {
[
'@babel/preset-env',
{
useBuiltIns: 'entry',
useBuiltIns: 'usage',
corejs: 3,
}
]

Cargando…
Cancelar
Guardar