chore: upgrade webpack encore from 4.7 to 7.2

This commit is contained in:
fromme committed 2026-10-20 14:04:43 +02:00
1 parent 1cda9d378a
commit 2de985b009
5 files changed
+1140 -4915

No files matched your search

+1 -1
View File
@@ -1 +1 @@
18
24
+1 -1
View File
@@ -51,7 +51,7 @@ $rsyncOptions = [
'phpunit.xml.dist',
'public/.htaccess',
'tailwind.config.js',
'webpack.config.js',
'webpack.config.mjs',
'rapidapi.paw',
'bin/.phpunit',
'temp/*',
+1122 -4895
View File
File diff suppressed because it is too large. Load diff
+9 -9
View File
@@ -1,23 +1,24 @@
{
"name": "myep-team",
"dependencies": {
"@babel/core": "^7.17.0",
"@babel/preset-env": "^7.16.0",
"@babel/core": "^8.0.0",
"@babel/preset-env": "^8.0.0",
"@hotwired/stimulus": "^3.0.0",
"@symfony/stimulus-bridge": "^3.2.0",
"@symfony/webpack-encore": "^4.0.0",
"@symfony/webpack-encore": "^7.2.0",
"@tailwindcss/forms": "^0.5.6",
"@tailwindcss/postcss": "^4.3.3",
"@trevoreyre/autocomplete-js": "^2.4.1",
"babel-plugin-polyfill-corejs3": "^1.0.0",
"chart.js": "^4.5.1",
"core-js": "^3.23.0",
"core-js": "^3.50.0",
"dropzone": "^6.0.0-beta.2",
"file-loader": "^6.2.0",
"flatpickr": "^4.6.13",
"htmx.org": "^2.0.11",
"lightningcss": "^1.32.0",
"mjml": "^4.15.3",
"postcss": "^8.4.29",
"postcss-loader": "^7.3.3",
"postcss-loader": "^8.1.1",
"pretty-bytes": "^6.1.1",
"regenerator-runtime": "^0.13.9",
"sortablejs": "^1.15.0",
@@ -25,13 +26,12 @@
"tailwindcss": "^4.3.3",
"tippy.js": "^6.3.7",
"toastify-js": "^1.12.0",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
"webpack": "^5.101.0",
"webpack-cli": "^7.0.0"
},
"license": "UNLICENSED",
"private": true,
"scripts": {
"dev-server": "encore dev-server",
"dev": "encore dev",
"watch": "encore dev --watch",
"build": "encore production --progress",
+7 -9
View File
@@ -1,4 +1,4 @@
const Encore = require('@symfony/webpack-encore');
import Encore from '@symfony/webpack-encore';
// Manually configure the runtime environment if not already configured yet by the "encore" command.
// It's useful when you use tools that rely on webpack.config.js file.
@@ -50,17 +50,15 @@ Encore
// config.plugins.push('@babel/a-babel-plugin');
// })
// enables and configure @babel/preset-env polyfills
.configureBabelPresetEnv((config) => {
config.useBuiltIns = 'usage';
config.corejs = '3.23';
// adds the core-js polyfills the code uses (Babel 8 dropped useBuiltIns/corejs for this)
.configureBabel((config) => {
config.plugins.push(['babel-plugin-polyfill-corejs3', { method: 'usage-global', version: '3.50' }]);
})
.enablePostCssLoader()
// postcss-calc cannot parse Tailwind 4's calc(infinity * 1px) and warns on every build
.configureCssMinimizerPlugin((options) => {
options.minimizerOptions = { preset: ['default', { calc: false }] };
.configureCssMinimizerPlugin((options, MinimizerPlugin) => {
options.minify = MinimizerPlugin.lightningCssMinify;
})
// enables Sass/SCSS support
@@ -84,4 +82,4 @@ Encore
])
;
module.exports = Encore.getWebpackConfig();
export default await Encore.getWebpackConfig();