build: optimize core-js modules importing

This commit is contained in:
Haishan 2018-10-21 15:40:18 +08:00
parent de9655fd99
commit 2903e444bb
2 changed files with 7 additions and 2 deletions

View file

@ -3,7 +3,11 @@
[ [
"@babel/preset-env", "@babel/preset-env",
{ {
"modules": false "modules": false,
"useBuiltIns": "usage",
"targets": {
"browsers": [">0.25%", "not ie 11", "not op_mini all"]
}
} }
], ],
"@babel/preset-react" "@babel/preset-react"

View file

@ -22,7 +22,8 @@ const svgSpriteRule = {
// ---- entry // ---- entry
const entry = { const entry = {
app: ['whatwg-fetch', '@babel/polyfill', './src/app.js'] // app: ['whatwg-fetch', '@babel/polyfill', './src/app.js']
app: ['whatwg-fetch', './src/app.js']
}; };
// ---- output // ---- output