@nx/angular 21.1.0-canary.20250514-889dee0 → 21.1.0-canary.20250515-81ecb22

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular",
3
- "version": "21.1.0-canary.20250514-889dee0",
3
+ "version": "21.1.0-canary.20250515-81ecb22",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: \n\n- Integration with libraries such as Storybook, Jest, ESLint, Tailwind CSS, Playwright and Cypress. \n\n- Generators to help scaffold code quickly (like: Micro Frontends, Libraries, both internal to your codebase and publishable to npm) \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -67,14 +67,14 @@
67
67
  "semver": "^7.5.3",
68
68
  "tslib": "^2.3.0",
69
69
  "webpack-merge": "^5.8.0",
70
- "@nx/devkit": "21.1.0-canary.20250514-889dee0",
71
- "@nx/js": "21.1.0-canary.20250514-889dee0",
72
- "@nx/eslint": "21.1.0-canary.20250514-889dee0",
73
- "@nx/webpack": "21.1.0-canary.20250514-889dee0",
74
- "@nx/rspack": "21.1.0-canary.20250514-889dee0",
75
- "@nx/module-federation": "21.1.0-canary.20250514-889dee0",
76
- "@nx/web": "21.1.0-canary.20250514-889dee0",
77
- "@nx/workspace": "21.1.0-canary.20250514-889dee0",
70
+ "@nx/devkit": "21.1.0-canary.20250515-81ecb22",
71
+ "@nx/js": "21.1.0-canary.20250515-81ecb22",
72
+ "@nx/eslint": "21.1.0-canary.20250515-81ecb22",
73
+ "@nx/webpack": "21.1.0-canary.20250515-81ecb22",
74
+ "@nx/rspack": "21.1.0-canary.20250515-81ecb22",
75
+ "@nx/module-federation": "21.1.0-canary.20250515-81ecb22",
76
+ "@nx/web": "21.1.0-canary.20250515-81ecb22",
77
+ "@nx/workspace": "21.1.0-canary.20250515-81ecb22",
78
78
  "piscina": "^4.4.0"
79
79
  },
80
80
  "peerDependencies": {
@@ -15,6 +15,8 @@ const SUPPORTED_EXECUTORS = [
15
15
  '@angular-devkit/build-angular:browser',
16
16
  '@angular-devkit/build-angular:dev-server',
17
17
  '@angular-devkit/build-angular:server',
18
+ '@angular-devkit/build-angular:prerender',
19
+ '@angular-devkit/build-angular:app-shell',
18
20
  '@nx/angular:webpack-browser',
19
21
  '@nx/angular:webpack-server',
20
22
  '@nx/angular:dev-server',
@@ -293,6 +295,31 @@ async function convertToRspack(tree, schema) {
293
295
  }
294
296
  serveTargetNames.push(targetName);
295
297
  }
298
+ else if (target.executor === '@angular-devkit/build-angular:prerender') {
299
+ if (target.options) {
300
+ const prerenderOptions = {
301
+ routesFile: target.options.routesFile,
302
+ discoverRoutes: target.options.discoverRoutes ?? true,
303
+ routes: target.options.routes ?? [],
304
+ };
305
+ createConfigOptions.prerender = prerenderOptions;
306
+ if (target.configurations) {
307
+ for (const [configurationName, configuration] of Object.entries(target.configurations)) {
308
+ configurationOptions[configurationName] ??= {};
309
+ configurationOptions[configurationName].prerender ??= {
310
+ routesFile: configuration.routesFile,
311
+ discoverRoutes: configuration.discoverRoutes ?? true,
312
+ routes: configuration.routes ?? [],
313
+ };
314
+ }
315
+ }
316
+ }
317
+ buildTargetNames.push(targetName);
318
+ }
319
+ else if (target.executor === '@angular-devkit/build-angular:app-shell') {
320
+ createConfigOptions.appShell = true;
321
+ buildTargetNames.push(targetName);
322
+ }
296
323
  }
297
324
  const customWebpackConfigInfo = customWebpackConfigPath
298
325
  ? await (0, get_custom_webpack_config_1.getCustomWebpackConfig)(tree, project.root, customWebpackConfigPath)
@@ -311,6 +338,7 @@ async function convertToRspack(tree, schema) {
311
338
  const { rspackInitGenerator } = (0, devkit_1.ensurePackage)('@nx/rspack', versions_1.nxVersion);
312
339
  await rspackInitGenerator(tree, {
313
340
  addPlugin: true,
341
+ framework: 'angular',
314
342
  });
315
343
  // This is needed to prevent a circular execution of the build target
316
344
  const rootPkgJson = (0, devkit_1.readJson)(tree, 'package.json');