build: optimize core-js modules importing
This commit is contained in:
parent
de9655fd99
commit
2903e444bb
2 changed files with 7 additions and 2 deletions
6
.babelrc
6
.babelrc
|
@ -3,7 +3,11 @@
|
|||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
"modules": false
|
||||
"modules": false,
|
||||
"useBuiltIns": "usage",
|
||||
"targets": {
|
||||
"browsers": [">0.25%", "not ie 11", "not op_mini all"]
|
||||
}
|
||||
}
|
||||
],
|
||||
"@babel/preset-react"
|
||||
|
|
|
@ -22,7 +22,8 @@ const svgSpriteRule = {
|
|||
// ---- 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
|
||||
|
|
Loading…
Reference in a new issue