Skip to content

chore(deps): bump webpack-dev-middleware and @symfony/webpack-encore - #3864

Open
dependabot[bot] wants to merge 1 commit into
6.1from
dependabot/npm_and_yarn/multi-e8f92ac5c1
Open

dependabot[bot] wants to merge 1 commit into
6.1from
dependabot/npm_and_yarn/multi-e8f92ac5c1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 4, 2026

Copy link
Copy Markdown
Contributor

Removes webpack-dev-middleware. It's no longer used after updating ancestor dependency @symfony/webpack-encore. These dependencies need to be updated together.

Removes webpack-dev-middleware

Updates @symfony/webpack-encore from 1.8.2 to 7.2.1

Release notes

Sourced from @​symfony/webpack-encore's releases.

7.2.1 - The "Who Minified My CSS?" Release

[!IMPORTANT] 7.2.1 is a bug-fix release, and one fix changes your production output: Encore was passing the legacy Sass option outputStyle, which sass-loader 16/17 ignore, so Sass was minifying your CSS by accident, and Encore now passes the modern style option instead. Since 7.0.0 Encore adds no CSS minifier on its own, so without configureCssMinimizerPlugin() your production CSS will now ship unminified. Configure a minifier with it (Lightning CSS, for example), and note that this release also fixes a UTF-8 BOM build error and a few smaller issues. See the upgrade guide before upgrading.

What's Changed

New Contributors

Full Changelog: symfony/webpack-encore@v7.2.0...v7.2.1


Thanks to everyone who contributed to this release! 🙌

Update Encore in your project:

npm install @symfony/webpack-encore@latest --save-dev
pnpm add --save-dev @symfony/webpack-encore@latest
yarn add --dev @symfony/webpack-encore@latest

7.2.0 - The Now-With-Types Release

[!NOTE] The entire codebase is now TypeScript, and the package ships type definitions out of the box, so methods like enableSassLoader() and configureDevServerOptions() give you real autocompletion and validation for every option you pass in webpack.config.js.

[!IMPORTANT] Reprise v0.6.0 reaches near feature-parity with Encore on both Vite and Rsbuild, including a migration guide that maps every Encore.* call to its equivalent. Active maintenance on Webpack Encore slows from here (mostly dependency updates and bug fixes), but Encore stays supported, and Reprise is the recommended path if you want to move to a modern setup.

What's Changed

... (truncated)

Changelog

Sourced from @​symfony/webpack-encore's changelog.

7.2.1

  • Pass the modern Sass style option instead of the ignored legacy outputStyle, so Sass no longer minifies CSS in production, configure a CSS minifier with configureCssMinimizerPlugin() if you need minified CSS
  • Throw a helpful error when a callback is passed as the first argument of configureImageRule() or configureFontRule() instead of being silently ignored
  • Fix the persistent cache of enableBuildCache() not being written when fork-ts-checker-webpack-plugin is not installed

7.2.0

  • Migrate internal code to TypeScript, ship package with type definitions (better DX and IDE support!)
  • Improve the typing of the configuration methods (enableSassLoader(), configureDevServerOptions(), enableVueLoader(), configureBabelPresetEnv(), etc.): options now resolve to the real loader/plugin types, giving full autocompletion and validation in your webpack.config
  • Add support for webpack-dev-server ^6.0.0 (requires webpack ^5.102.0 and webpack-cli ^7.0.2)

7.1.0

  • Add support for sass-loader ^17.0.0
  • Add support for @vue/babel-plugin-jsx to ^3.0.0, remove support for @vue/babel-plugin-jsx to ^1.0.0
  • Update the minimum version of webpack-manifest-plugin to ^6.0.1
  • Declare the JS/CSS minifiers as optional peer dependencies without a version constraint, matching minimizer-webpack-plugin behavior

7.0.0

This is a new major version that contains several backwards-compatibility breaks.

BC Breaks

  • Migrate from CJS (CommonJS) to ESM (ES Modules)
  • Migrate synchronous API to asynchronous API
  • Drop support of Babel 7 in favor of Babel 8
  • Remove Encore.configureTerserPlugin() in favor of Encore.configureJsMinimizerPlugin()

Features

  • Add support for webpack-cli ^7.0.0
  • Add support for typescript ^6.0.0
  • Add support for Node.js` ^26.0.0
  • Add support of Babel 8
  • Use ESM exports in Encore.copyFiles() for better webpack optimizations
  • Use peerDependencies instead of devDependencies for optional dependencies checking
  • Replace css-minimizer-webpack-plugin and terser-webpack-plugin by minimizer-webpack-plugin to unify the minification process

See the upgrade guide for the full list of breaking changes and upgrade steps.

6.0.0

This is a new major version that contains several backwards-compatibility breaks, but for the best!

BC Breaks

  • Remove support of Node.js <22.13.0
  • Remove support of babel-loader@^9.1.3, see possible BC breaks in 10.0.0 release notes

... (truncated)

Upgrade guide

Sourced from @​symfony/webpack-encore's upgrade guide.

Upgrading

7.0.0

[!IMPORTANT] v7.0.0 is ESM-only, Encore.getWebpackConfig() is now async, Babel 8 is required, and CSS minification is no longer enabled by default. These are real breaking changes, so please follow the steps below.

The Node.js ecosystem has largely moved to ESM as the standard module format. Most actively maintained packages now ship ESM-only, and since Encore already requires Node.js ^22.13.0 || >=24.0 (which has full ESM support), continuing to publish as CJS would mean fighting the ecosystem: pinning to older dependencies, adding workarounds, and missing out on tree-shaking and static analysis.

Moving to ESM also unlocks async/await in Encore's internals. Now that getWebpackConfig() is natively async, Encore can adopt modern async APIs from the ecosystem without hacks.

  • Migrate from CommonJS to ESM: the package now requires "type": "module" in your project or the use of .mjs file extensions. Update your webpack.config.js:

    // Before (CJS)
    const Encore = require('@symfony/webpack-encore');
    // ...
    module.exports = Encore.getWebpackConfig();
    // After (ESM)
    import Encore from '@​symfony/webpack-encore';
    // ...
    export default await Encore.getWebpackConfig();

    Note: Encore.getWebpackConfig() is now async and returns a Promise. Use await at the top level of your webpack config (webpack supports async config files natively).

  • If you prefer not to add "type": "module", rename your webpack config to webpack.config.mjs instead; webpack detects the .mjs extension and treats it as ESM automatically.

  • Replace __dirname and __filename with their ESM equivalents in your webpack config:

    // Before (CJS)
    path.resolve(__dirname, 'src/utilities/');
    config: [__filename];
    // After (ESM)
    path.resolve(import.meta.dirname, 'src/utilities/');
    config: [import.meta.filename];

... (truncated)

Commits
  • d849485 Tagging 7.2.1
  • 4360c00 Update CHANGELOG for 7.2.1
  • 9b0af19 tidy #1568 Bump vitest to 5.0.5, Babel, Vue and handlebars (Kocal)
  • ee5c5bb Bump vitest to 5.0.5, Babel, Vue and handlebars
  • 2263b31 tidy #1556 Bump the github-actions group across 1 directory with 3 updates (d...
  • c33872a tidy #1566 Bump fast-uri to 3.1.9 in all lockfiles (Kocal)
  • 0bda7fb Bump fast-uri to 3.1.9 in all lockfiles
  • a16f66b Bump the github-actions group across 1 directory with 3 updates
  • 3e71c95 minor #1562 Bump vitest to 4.1.12 and vite to 8.3.5 (Kocal)
  • 615f915 Bump vitest to 4.1.12 and vite to 8.3.5
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by kocal, a new releaser for @​symfony/webpack-encore since your current version.

Install script changes

This version adds prepare script that runs during installation. Review the package contents before updating.


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Removes [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware). It's no longer used after updating ancestor dependency [@symfony/webpack-encore](https://github.com/symfony/webpack-encore). These dependencies need to be updated together.


Removes `webpack-dev-middleware`

Updates `@symfony/webpack-encore` from 1.8.2 to 7.2.1
- [Release notes](https://github.com/symfony/webpack-encore/releases)
- [Changelog](https://github.com/symfony/webpack-encore/blob/main/CHANGELOG.md)
- [Upgrade guide](https://github.com/symfony/webpack-encore/blob/main/UPGRADE.md)
- [Commits](symfony/webpack-encore@v1.8.2...v7.2.1)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-version:
  dependency-type: indirect
- dependency-name: "@symfony/webpack-encore"
  dependency-version: 7.2.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file 🧹 Chore labels Dec 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🧹 Chore dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants