@nx/rspack 21.4.0-beta.4 → 21.4.0-beta.6

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nx/rspack",
3
3
  "description": "The Nx Plugin for Rspack contains executors and generators that support building applications using Rspack.",
4
- "version": "21.4.0-beta.4",
4
+ "version": "21.4.0-beta.6",
5
5
  "type": "commonjs",
6
6
  "repository": {
7
7
  "type": "git",
@@ -24,10 +24,10 @@
24
24
  "generators": "./generators.json",
25
25
  "executors": "./executors.json",
26
26
  "dependencies": {
27
- "@nx/js": "21.4.0-beta.4",
28
- "@nx/devkit": "21.4.0-beta.4",
29
- "@nx/web": "21.4.0-beta.4",
30
- "@nx/module-federation": "21.4.0-beta.4",
27
+ "@nx/js": "21.4.0-beta.6",
28
+ "@nx/devkit": "21.4.0-beta.6",
29
+ "@nx/web": "21.4.0-beta.6",
30
+ "@nx/module-federation": "21.4.0-beta.6",
31
31
  "@phenomnomnominal/tsquery": "~5.0.1",
32
32
  "@rspack/core": "^1.3.8",
33
33
  "@rspack/dev-server": "^1.1.1",
@@ -57,7 +57,7 @@
57
57
  "webpack-node-externals": "^3.0.0"
58
58
  },
59
59
  "devDependencies": {
60
- "nx": "21.4.0-beta.4"
60
+ "nx": "21.4.0-beta.6"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "@module-federation/enhanced": "^0.17.0",
@@ -1 +1 @@
1
- {"version":3,"file":"rspack.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/rspack/src/executors/rspack/rspack.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAU,MAAM,YAAY,CAAC;AAUrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,wBAA+B,WAAW,CACxC,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,eAAe;aAgCb,OAAO;cACN,MAAM;cA0EnB"}
1
+ {"version":3,"file":"rspack.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/rspack/src/executors/rspack/rspack.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAU,MAAM,YAAY,CAAC;AAUrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,wBAA+B,WAAW,CACxC,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,eAAe;aAgCb,OAAO;cACN,MAAM;cA+EnB"}
@@ -5,6 +5,7 @@ const devkit_1 = require("@nx/devkit");
5
5
  const async_iterable_1 = require("@nx/devkit/src/utils/async-iterable");
6
6
  const js_1 = require("@nx/js");
7
7
  const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
8
+ const core_1 = require("@rspack/core");
8
9
  const fs_1 = require("fs");
9
10
  const path_1 = require("path");
10
11
  const create_compiler_1 = require("../../utils/create-compiler");
@@ -29,7 +30,10 @@ async function* runExecutor(options, context) {
29
30
  });
30
31
  const compiler = await (0, create_compiler_1.createCompiler)(normalizedOptions, context);
31
32
  const iterable = (0, async_iterable_1.createAsyncIterable)(async ({ next, done }) => {
32
- if (options.watch) {
33
+ const watch = (compiler instanceof core_1.Compiler
34
+ ? compiler.options.watch
35
+ : compiler.options[0].watch) ?? options.watch;
36
+ if (watch) {
33
37
  const watcher = compiler.watch({}, async (err, stats) => {
34
38
  if (err) {
35
39
  devkit_1.logger.error(err);