@nx/rspack 21.4.0-beta.10 → 21.4.0-beta.12

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.10",
4
+ "version": "21.4.0-beta.12",
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.10",
28
- "@nx/devkit": "21.4.0-beta.10",
29
- "@nx/web": "21.4.0-beta.10",
30
- "@nx/module-federation": "21.4.0-beta.10",
27
+ "@nx/js": "21.4.0-beta.12",
28
+ "@nx/devkit": "21.4.0-beta.12",
29
+ "@nx/web": "21.4.0-beta.12",
30
+ "@nx/module-federation": "21.4.0-beta.12",
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.10"
60
+ "nx": "21.4.0-beta.12"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "@module-federation/enhanced": "^0.18.0",
@@ -219,14 +219,21 @@ function applyNxDependentConfig(options, config, { useNormalizedEntry } = {}) {
219
219
  options?.skipTypeChecking === false &&
220
220
  process.env['WEBPACK_SERVE'])) {
221
221
  const { TsCheckerRspackPlugin } = require('ts-checker-rspack-plugin');
222
- plugins.push(new TsCheckerRspackPlugin({
222
+ const pluginConfig = {
223
223
  typescript: {
224
224
  configFile: path.isAbsolute(tsConfig)
225
225
  ? tsConfig
226
226
  : path.join(options.root, tsConfig),
227
- memoryLimit: options.memoryLimit || 8192, // default memory limit is 8192
227
+ memoryLimit: options.memoryLimit || 8192,
228
228
  },
229
- }));
229
+ };
230
+ // When using TS solution setup, enable build mode to generate declaration files
231
+ // This prevents TS6305 errors when declaration files are expected but missing
232
+ // from module federation remote imports
233
+ if (isUsingTsSolution) {
234
+ pluginConfig.typescript.build = true;
235
+ }
236
+ plugins.push(new TsCheckerRspackPlugin(pluginConfig));
230
237
  }
231
238
  const entries = [];
232
239
  if (options.main) {