Skip to content

Commit 3e33a50

Browse files
authored
symfony/webpack-encore: bump to ^4.0.0, add peer dependencies webpack, webpack-cli, @babel/core and @babel/preset-env (#1123)
* symfony/webpack-encore: bump to ^4.0.0, add peer dependencies webpack and webpack-cli * symfony/webpack-encore: add @babel/core and @babel/preset-env as dev deps
1 parent b603770 commit 3e33a50

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{
22
"devDependencies": {
3+
"@babel/core": "^7.17.0",
4+
"@babel/preset-env": "^7.16.0",
35
"@hotwired/stimulus": "^3.0.0",
46
"@symfony/stimulus-bridge": "^3.2.0",
5-
"@symfony/webpack-encore": "^3.0.0",
7+
"@symfony/webpack-encore": "^4.0.0",
68
"core-js": "^3.23.0",
79
"regenerator-runtime": "^0.13.9",
10+
"webpack": "^5.74.0",
11+
"webpack-cli": "^4.10.0",
812
"webpack-notifier": "^1.15.0"
913
},
1014
"license": "UNLICENSED",

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ Encore
4545
// enables hashed filenames (e.g. app.abc123.css)
4646
.enableVersioning(Encore.isProduction())
4747

48-
.configureBabel((config) => {
49-
config.plugins.push('@babel/plugin-proposal-class-properties');
50-
})
48+
// configure Babel
49+
// .configureBabel((config) => {
50+
// config.plugins.push('@babel/a-babel-plugin');
51+
// })
5152

52-
// enables @babel/preset-env polyfills
53+
// enables and configure @babel/preset-env polyfills
5354
.configureBabelPresetEnv((config) => {
5455
config.useBuiltIns = 'usage';
5556
config.corejs = 3;

0 commit comments

Comments
 (0)