From 86f6892fa80fd330362562c6cd1f727eb3797d8e Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Thu, 26 Sep 2024 10:27:15 +0200 Subject: [PATCH] [WebpackEncoreBundle] Update recipe for Webpack Encore 5 --- symfony/webpack-encore-bundle/2.0/package.json | 6 +++--- symfony/webpack-encore-bundle/2.0/post-install.txt | 2 +- symfony/webpack-encore-bundle/2.0/webpack.config.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/symfony/webpack-encore-bundle/2.0/package.json b/symfony/webpack-encore-bundle/2.0/package.json index b4ce2a66a..1d9ddc361 100644 --- a/symfony/webpack-encore-bundle/2.0/package.json +++ b/symfony/webpack-encore-bundle/2.0/package.json @@ -2,11 +2,11 @@ "devDependencies": { "@babel/core": "^7.17.0", "@babel/preset-env": "^7.16.0", - "@symfony/webpack-encore": "^4.0.0", - "core-js": "^3.23.0", + "@symfony/webpack-encore": "^5.0.0", + "core-js": "^3.38.0", "regenerator-runtime": "^0.13.9", "webpack": "^5.74.0", - "webpack-cli": "^4.10.0", + "webpack-cli": "^5.1.0", "webpack-notifier": "^1.15.0" }, "license": "UNLICENSED", diff --git a/symfony/webpack-encore-bundle/2.0/post-install.txt b/symfony/webpack-encore-bundle/2.0/post-install.txt index b55c0c928..490195be8 100644 --- a/symfony/webpack-encore-bundle/2.0/post-install.txt +++ b/symfony/webpack-encore-bundle/2.0/post-install.txt @@ -2,4 +2,4 @@ * Compile your assets: npm run dev - * Or start the development server: npm run watch + * Or start the development server: npm run dev-server diff --git a/symfony/webpack-encore-bundle/2.0/webpack.config.js b/symfony/webpack-encore-bundle/2.0/webpack.config.js index 9d752df43..97de62c5a 100644 --- a/symfony/webpack-encore-bundle/2.0/webpack.config.js +++ b/symfony/webpack-encore-bundle/2.0/webpack.config.js @@ -50,7 +50,7 @@ Encore // enables and configure @babel/preset-env polyfills .configureBabelPresetEnv((config) => { config.useBuiltIns = 'usage'; - config.corejs = '3.23'; + config.corejs = '3.38'; }) // enables Sass/SCSS support