@nx/webpack - Migrations
The @nx/webpack plugin provides various migrations to help you migrate to newer versions of webpack projects within your Nx workspace. Below is a complete reference for all available migrations.
21.5.x
21.5.0-package-updates
Version: 21.5.0-beta.0
Packages
The following packages will be updated:
Name | Version | Always add to package.json |
---|---|---|
webpack | 5.101.3 | Updated only |
21.0.x
update-21-0-0-remove-isolated-config
Version: 21.0.0-beta.11
Remove isolatedConfig option for @nx/webpack:webpack
Remove isolatedConfig
option
The isolatedConfig
option is no longer supported by the @nx/webpack:webpack
executor. Previously, setting isolatedConfig: false
allowed you to use the executor’s built-in Webpack configuration.
If this option is set in project.json
, then it will be removed in favor of an explicit webpackConfig
file. The Webpack configuration file matches the previous built-in configuration of the @nx/webpack:webpack
executor.
Sample Code Changes
{% tabs %} {% tab label=“Before” %}
{ "targets": { "build": { "executor": "@nx/webpack:webpack", "options": { "isolatedConfig": false } } }}
{% /tab %} {% tab label=“After” %}
{ "targets": { "build": { "executor": "@nx/webpack:webpack", "options": { "webpackConfig": "apps/myapp/webpack.config.js" } } }}
{% /tab %} {% /tabs %}
20.7.x
20.7.1-package-updates
Version: 20.7.1-beta.0
Packages
The following packages will be updated:
Name | Version | Always add to package.json |
---|---|---|
webpack | 5.98.0 | Updated only |
webpack-dev-server | ^5.2.1 | Updated only |
20.5.x
20.5.0-package-updates
Version: 20.5.0-beta.3
Packages
The following packages will be updated:
Name | Version | Always add to package.json |
---|---|---|
sass-loader | ^16.0.4 | Updated only |
19.7.x
19.7.0-package-updates
Version: 19.7.0-beta.4
Packages
The following packages will be updated:
Name | Version | Always add to package.json |
---|---|---|
@module-federation/enhanced | ~0.6.0 | Updated only |
@module-federation/sdk | ~0.6.0 | Updated only |
19.6.x
update-19-6-3-proxy-config
Version: 19.6.3-beta.0
Migrate proxy config files to match new format from webpack-dev-server v5.
19.6.0-package-updates
Version: 19.6.0-beta.1
Packages
The following packages will be updated:
Name | Version | Always add to package.json |
---|---|---|
webpack-dev-server | ^5.0.4 | Updated only |