mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
Encore: Make @babel/preset-env use polyfills by default
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"@symfony/webpack-encore": "^0.22.0",
|
||||
"@symfony/webpack-encore": "^0.26.0",
|
||||
"core-js": "^3.0.0",
|
||||
"webpack-notifier": "^1.6.0"
|
||||
},
|
||||
"license": "UNLICENSED",
|
||||
|
||||
@@ -41,6 +41,12 @@ Encore
|
||||
// enables hashed filenames (e.g. app.abc123.css)
|
||||
.enableVersioning(Encore.isProduction())
|
||||
|
||||
// enables @babel/preset-env polyfills
|
||||
.configureBabel(() => {}, {
|
||||
useBuiltIns: 'usage',
|
||||
corejs: 3
|
||||
})
|
||||
|
||||
// enables Sass/SCSS support
|
||||
//.enableSassLoader()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user