npm @symfony/webpack-encore 6.0.0
v6.0.0 Node.js 22+, loaders upgrades, and Spring cleaning!

8 hours ago

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 your Encore.copyFiles() filename option, you will need to restructure your file organization or use a different naming strategy.
  • Remove deprecated --https flag and devServerConfig.https option for webpack-dev-server by @Kocal in #1400
    Use --server-type https or configureDevServerOptions() with server: '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-jsx feature, version: 2 option, Vue 2 peer dependencies), which was forgotten during v5.0.0 by @Kocal in #1399

Internal

Upgrading

Run:

npm install "@symfony/webpack-encore@^6.0.0" --save-dev

or:

yarn add "@symfony/webpack-encore@^6.0.0" --dev

or:

pnpm install "@symfony/webpack-encore@^6.0.0" --save-dev

Full Changelog: v5.3.1...v6.0.0

Don't miss a new webpack-encore release

NewReleases is sending notifications on new releases.