@nx/webpack 23.3.0-pr.36841.f66e88b → 23.3.0-pr.37068.f95e11e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -85,6 +85,15 @@ async function createWebpackTargets(configFilePath, projectRoot, options, contex
85
85
  }
86
86
  }
87
87
  const targets = {};
88
+ const buildInputs = [
89
+ ...('production' in namedInputs
90
+ ? ['production', '^production']
91
+ : ['default', '^default']),
92
+ {
93
+ externalDependencies: ['webpack-cli'],
94
+ },
95
+ internal_2.TS_SOLUTION_SETUP_TSCONFIG_INPUT,
96
+ ];
88
97
  targets[options.buildTargetName] = {
89
98
  command: `webpack-cli build`,
90
99
  options: { cwd: projectRoot, env: { NODE_ENV: 'production' } },
@@ -96,13 +105,7 @@ async function createWebpackTargets(configFilePath, projectRoot, options, contex
96
105
  cache: true,
97
106
  dependsOn: [`^${options.buildTargetName}`],
98
107
  inputs: [
99
- ...('production' in namedInputs
100
- ? ['production', '^production']
101
- : ['default', '^default']),
102
- {
103
- externalDependencies: ['webpack-cli'],
104
- },
105
- internal_2.TS_SOLUTION_SETUP_TSCONFIG_INPUT,
108
+ ...buildInputs,
106
109
  // The build can emit a pruned pnpm deploy output (NxAppWebpackPlugin
107
110
  // with generatePackageJson), whose install settings come from these
108
111
  // otherwise-unhashed root sources.
@@ -127,6 +130,7 @@ async function createWebpackTargets(configFilePath, projectRoot, options, contex
127
130
  };
128
131
  targets[options.serveTargetName] = {
129
132
  continuous: true,
133
+ inputs: [...buildInputs],
130
134
  command: `webpack-cli serve`,
131
135
  options: {
132
136
  cwd: projectRoot,
@@ -147,6 +151,7 @@ async function createWebpackTargets(configFilePath, projectRoot, options, contex
147
151
  };
148
152
  targets[options.previewTargetName] = {
149
153
  continuous: true,
154
+ inputs: [...buildInputs],
150
155
  command: `webpack-cli serve`,
151
156
  options: {
152
157
  cwd: projectRoot,
@@ -167,6 +172,7 @@ async function createWebpackTargets(configFilePath, projectRoot, options, contex
167
172
  };
168
173
  targets[options.serveStaticTargetName] = {
169
174
  continuous: true,
175
+ inputs: [...buildInputs],
170
176
  dependsOn: [options.buildTargetName],
171
177
  executor: '@nx/web:file-server',
172
178
  options: {
@@ -3,7 +3,7 @@ export declare const nxVersion: any;
3
3
  export declare const swcLoaderVersion = "0.1.15";
4
4
  export declare const tsLibVersion = "^2.3.0";
5
5
  export declare const minSupportedWebpackVersion = "5.0.0";
6
- export declare const webpackVersion = "^5.101.3";
6
+ export declare const webpackVersion = "~5.110.0";
7
7
  export declare const webpackDevServerVersion = "^5.2.1";
8
8
  export declare const webpackCliVersion = "^7.0.0";
9
9
  export declare const reactRefreshWebpackPluginVersion = "^0.5.7";
@@ -12,7 +12,8 @@ exports.tsLibVersion = '^2.3.0';
12
12
  // `experiments.cacheUnaffected`), so webpack 5 is the supported floor.
13
13
  exports.minSupportedWebpackVersion = '5.0.0';
14
14
  // Fresh-install versions written when the package is not already present.
15
- exports.webpackVersion = '^5.101.3';
15
+ // Capped: 5.111.0 breaks MF builds (webpack/webpack#22034). Lift once @module-federation/enhanced fixes it.
16
+ exports.webpackVersion = '~5.110.0';
16
17
  exports.webpackDevServerVersion = '^5.2.1';
17
18
  exports.webpackCliVersion = '^7.0.0';
18
19
  // React apps
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/webpack",
3
- "version": "23.3.0-pr.36841.f66e88b",
3
+ "version": "23.3.0-pr.37068.f95e11e",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "files": [
@@ -118,8 +118,8 @@
118
118
  "tslib": "^2.3.0",
119
119
  "webpack-node-externals": "^3.0.0",
120
120
  "webpack-subresource-integrity": "^5.1.0",
121
- "@nx/js": "23.3.0-pr.36841.f66e88b",
122
- "@nx/devkit": "23.3.0-pr.36841.f66e88b"
121
+ "@nx/devkit": "23.3.0-pr.37068.f95e11e",
122
+ "@nx/js": "23.3.0-pr.37068.f95e11e"
123
123
  },
124
124
  "peerDependencies": {
125
125
  "webpack": "^5.0.0",
@@ -138,7 +138,7 @@
138
138
  }
139
139
  },
140
140
  "devDependencies": {
141
- "nx": "23.3.0-pr.36841.f66e88b"
141
+ "nx": "23.3.0-pr.37068.f95e11e"
142
142
  },
143
143
  "publishConfig": {
144
144
  "access": "public"