unstale

npm / webpack-cli

webpack-cli

What changed in webpack-cli 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-17.

4 breaking1 new APIs and options3 performance6 behavior and defaults3 tooling3 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.1.1 on npm

webpack-cli 720 changes

Breaking changes 4

  • This argument replaces the removed --node-env argument.

    7.0.0release notes

  • The minimum supported Node.js version is now 20.9.0.

    7.0.0release notes

  • The --node-env argument was removed in favor of --config-node-env.

    7.0.0release notes

  • The deprecated API was removed; users importing or requiring webpack-cli as cli may need to change their usage.

    7.0.0release notes

New APIs and options 1

  • Configuration files can now use JSON5, YAML or TOML; the corresponding parser package must be installed by the user.

    7.1.0release notes

Performance 3

  • Enables the Node.js compile cache to speed up CLI startup; it is available on Node.js >= 22.8.0.

    7.2.2release notes

  • CLI startup uses less CPU and memory, so commands start more efficiently.

    7.0.3release notes

  • Performance improved.

    7.0.0release notes

Behavior and default changes 6

  • The help output now has branded headers, section dividers, colorized terms and a clearer footer; colors and chrome become plain text when output is piped or --no-color is used.

    7.1.0release notes

  • The file protocol is now supported for the --config and --extends configuration options.

    7.0.1release notes

  • Configuration freezing is now allowed.

    7.0.0release notes

  • The CLI uses graceful shutdown when file system cache is enabled.

    7.0.0release notes

  • The command now outputs versions only.

    7.0.0release notes

  • The CLI uses dynamic import to load the configuration, falling back to interpretation when dynamic import cannot load it; this allows use of Node.js's built-in TypeScript support.

    7.0.0release notes

Tooling 3

  • Allow toml@5 as a peer dependency for TOML configuration files.

    7.2.3release notes

  • tsx is used as a fallback loader for TypeScript and JSX configuration files when no loader known to interpret, such as ts-node, is installed.

    7.2.0release notes

  • webpack-dev-server v6 is now supported as an optional peer dependency, alongside v5.

    7.2.0release notes

Fixes and other changes 3

  • Resolve the webpack-dev-server type from its default export so the types work with both v5 and v6.

    7.2.3release notes

  • Fixes dynamic import interop for CLIPlugin under Bun.

    7.2.1release notes

  • Resolves the configuration path for cache build dependencies.

    7.0.2release notes