@nx/webpack 23.2.0-beta.0 → 23.2.0-beta.2

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.
@@ -89,6 +89,11 @@ async function* webpackExecutor(_options, context) {
89
89
  // Run build sequentially and bail when first one fails.
90
90
  (0, operators_1.mergeScan)((acc, config) => {
91
91
  if (!acc.hasErrors()) {
92
+ // Propagate watch mode from executor options to webpack config.
93
+ // Without this, NxAppWebpackPlugin-based configs run in single-run
94
+ // mode even when the executor is invoked with watch: true, causing
95
+ // @nx/js:node to restart the process after every build.
96
+ config.watch = options.watch ?? config.watch;
92
97
  return (0, run_webpack_1.runWebpack)(config).pipe((0, operators_1.tap)((stats) => {
93
98
  console.info(stats.toString(config.stats));
94
99
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/webpack",
3
- "version": "23.2.0-beta.0",
3
+ "version": "23.2.0-beta.2",
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/devkit": "23.2.0-beta.0",
122
- "@nx/js": "23.2.0-beta.0"
121
+ "@nx/devkit": "23.2.0-beta.2",
122
+ "@nx/js": "23.2.0-beta.2"
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.2.0-beta.0"
141
+ "nx": "23.2.0-beta.2"
142
142
  },
143
143
  "publishConfig": {
144
144
  "access": "public"