@nx/rspack 23.2.0-rc.2 → 23.2.1

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.
@@ -402,7 +402,15 @@ function applyNxDependentConfig(options, config, { useNormalizedEntry } = {}, rs
402
402
  };
403
403
  config.externals = externals;
404
404
  // Enabled for performance
405
- config.cache = 'cache' in options ? options.cache : true;
405
+ const cache = 'cache' in options ? options.cache : true;
406
+ // compiler.options is already normalized when NxAppRspackPlugin runs, and
407
+ // @rspack/core >= 2.1 rejects the public `cache` shape after normalization.
408
+ config.cache = useNormalizedEntry
409
+ ? rspackCore.config.getNormalizedRspackOptions({
410
+ context: config.context,
411
+ cache,
412
+ }).cache
413
+ : cache;
406
414
  config.module = {
407
415
  ...config.module,
408
416
  rules: [
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": "23.2.0-rc.2",
4
+ "version": "23.2.1",
5
5
  "type": "commonjs",
6
6
  "files": [
7
7
  "dist",
@@ -151,14 +151,14 @@
151
151
  "tslib": "^2.3.0",
152
152
  "webpack": "5.105.2",
153
153
  "webpack-node-externals": "^3.0.0",
154
- "@nx/devkit": "23.2.0-rc.2",
155
- "@nx/module-federation": "23.2.0-rc.2",
156
- "@nx/web": "23.2.0-rc.2",
157
- "@nx/js": "23.2.0-rc.2"
154
+ "@nx/js": "23.2.1",
155
+ "@nx/web": "23.2.1",
156
+ "@nx/devkit": "23.2.1",
157
+ "@nx/module-federation": "23.2.1"
158
158
  },
159
159
  "devDependencies": {
160
- "nx": "23.2.0-rc.2",
161
- "@nx/nest": "23.2.0-rc.2"
160
+ "@nx/nest": "23.2.1",
161
+ "nx": "23.2.1"
162
162
  },
163
163
  "peerDependencies": {
164
164
  "@rspack/cli": "^1.0.0 || ^2.0.0",