Hey packagers!
A new major release is here! 🎉
This version brings significant changes to modernize Webpack Encore:
- Node.js 22.13.0 is now the minimum required version, to prepare ESM-support for next major version
- Major loaders have been upgraded to their latest versions
- Deprecated options and unmaintained dependencies have been removed
- Vue 2 support leftovers have been completely cleaned up
BC Breaks
- Remove support of Node.js <22.13.0 by @Kocal in #1395
- Remove support of babel-loader@^9.1.3, see possible BC breaks in 10.0.0 release notes by @Kocal in #1395
- Remove support of style-loader@^3.3.0, see possible BC breaks in 4.0.0 release notes by @Kocal in #1395
- Remove support of less-loader@^11.0.0, see possible BC breaks in 12.0.0 release notes by @Kocal in #1395
- Remove support of postcss-loader@^7.0.0, see possible BC breaks in 8.0.0 release notes by @Kocal in #1395
- Remove support of stylus-loader@^7.0.0, see possible BC breaks in 8.0.0 release notes by @Kocal in #1395
- Remove support of webpack-cli@^5.0.0, see possible BC breaks in 6.0.0 release notes
- Remove unmaintained file-loader dependency by @Kocal in #1398
The[N]placeholder (regex capture groups in filename patterns) is no longer supported.
If you were using patterns like[1]or[2]in yourEncore.copyFiles()filename option, you will need to restructure your file organization or use a different naming strategy. - Remove deprecated
--httpsflag anddevServerConfig.httpsoption for webpack-dev-server by @Kocal in #1400
Use--server-type httpsorconfigureDevServerOptions()withserver: 'https'instead
Features
- Update @nuxt/friendly-errors-webpack-plugin to @kocal/friendly-errors-webpack-plugin, a maintained fork of the original plugin
- Update webpack from ^5.74.0 to ^5.82.0 by @Kocal in #1395
- Update css-minimizer-webpack-plugin to ^8.0.0, see release notes
- Finish removing Vue 2 support leftovers (JSX code path,
vue-jsxfeature,version: 2option, Vue 2 peer dependencies), which was forgotten during v5.0.0 by @Kocal in #1399
Internal
- Cleanup
useStimulusBridgeandstimulusfrom features by @Kocal in #1394 - Add AGENTS.md by @Kocal in #1397
- Follow-up #1400 (fix URLs generation) by @Kocal in #1401
Upgrading
Run:
npm install "@symfony/webpack-encore@^6.0.0" --save-devor:
yarn add "@symfony/webpack-encore@^6.0.0" --devor:
pnpm install "@symfony/webpack-encore@^6.0.0" --save-devFull Changelog: v5.3.1...v6.0.0