Skip to content

Commit bcbb29f

Browse files
author
symfony-flex-server[bot]
authored
Merge pull request #557
2 parents f1d0ca3 + 03057a8 commit bcbb29f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

symfony/webpack-encore-bundle/1.0/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"devDependencies": {
3-
"@symfony/webpack-encore": "^0.22.0",
3+
"@symfony/webpack-encore": "^0.26.0",
4+
"core-js": "^3.0.0",
45
"webpack-notifier": "^1.6.0"
56
},
67
"license": "UNLICENSED",

symfony/webpack-encore-bundle/1.0/webpack.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,22 @@ Encore
4141
// enables hashed filenames (e.g. app.abc123.css)
4242
.enableVersioning(Encore.isProduction())
4343

44+
// enables @babel/preset-env polyfills
45+
.configureBabel(() => {}, {
46+
useBuiltIns: 'usage',
47+
corejs: 3
48+
})
49+
4450
// enables Sass/SCSS support
4551
//.enableSassLoader()
4652

4753
// uncomment if you use TypeScript
4854
//.enableTypeScriptLoader()
4955

56+
// uncomment to get integrity="..." attributes on your script & link tags
57+
// requires WebpackEncoreBundle 1.4 or higher
58+
//.enableIntegrityHashes()
59+
5060
// uncomment if you're having problems with a jQuery plugin
5161
//.autoProvidejQuery()
5262

0 commit comments

Comments
 (0)