@angular/build 20.3.8 → 20.3.10

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": "@angular/build",
3
- "version": "20.3.8",
3
+ "version": "20.3.10",
4
4
  "description": "Official build system for Angular",
5
5
  "keywords": [
6
6
  "Angular CLI",
@@ -23,7 +23,7 @@
23
23
  "builders": "builders.json",
24
24
  "dependencies": {
25
25
  "@ampproject/remapping": "2.3.0",
26
- "@angular-devkit/architect": "0.2003.8",
26
+ "@angular-devkit/architect": "0.2003.10",
27
27
  "@babel/core": "7.28.3",
28
28
  "@babel/helper-annotate-as-pure": "7.27.3",
29
29
  "@babel/helper-split-export-declaration": "7.24.7",
@@ -60,7 +60,7 @@
60
60
  "@angular/platform-browser": "^20.0.0",
61
61
  "@angular/platform-server": "^20.0.0",
62
62
  "@angular/service-worker": "^20.0.0",
63
- "@angular/ssr": "^20.3.8",
63
+ "@angular/ssr": "^20.3.10",
64
64
  "karma": "^6.4.0",
65
65
  "less": "^4.2.0",
66
66
  "ng-packagr": "^20.0.0",
@@ -136,9 +136,9 @@ export type Schema = {
136
136
  */
137
137
  outputHashing?: OutputHashing;
138
138
  /**
139
- * Defines the build output target. 'static': Generates a static site for deployment on any
140
- * static hosting service. 'server': Produces an application designed for deployment on a
141
- * server that supports server-side rendering (SSR).
139
+ * Defines the type of build output artifact. 'static': Generates a static site build
140
+ * artifact for deployment on any static hosting service. 'server': Generates a server
141
+ * application build artifact, required for applications using hybrid rendering or APIs.
142
142
  */
143
143
  outputMode?: OutputMode;
144
144
  /**
@@ -428,9 +428,9 @@ export declare enum OutputHashing {
428
428
  None = "none"
429
429
  }
430
430
  /**
431
- * Defines the build output target. 'static': Generates a static site for deployment on any
432
- * static hosting service. 'server': Produces an application designed for deployment on a
433
- * server that supports server-side rendering (SSR).
431
+ * Defines the type of build output artifact. 'static': Generates a static site build
432
+ * artifact for deployment on any static hosting service. 'server': Generates a server
433
+ * application build artifact, required for applications using hybrid rendering or APIs.
434
434
  */
435
435
  export declare enum OutputMode {
436
436
  Server = "server",
@@ -63,9 +63,9 @@ var OutputHashing;
63
63
  OutputHashing["None"] = "none";
64
64
  })(OutputHashing || (exports.OutputHashing = OutputHashing = {}));
65
65
  /**
66
- * Defines the build output target. 'static': Generates a static site for deployment on any
67
- * static hosting service. 'server': Produces an application designed for deployment on a
68
- * server that supports server-side rendering (SSR).
66
+ * Defines the type of build output artifact. 'static': Generates a static site build
67
+ * artifact for deployment on any static hosting service. 'server': Generates a server
68
+ * application build artifact, required for applications using hybrid rendering or APIs.
69
69
  */
70
70
  var OutputMode;
71
71
  (function (OutputMode) {
@@ -611,7 +611,7 @@
611
611
  },
612
612
  "outputMode": {
613
613
  "type": "string",
614
- "description": "Defines the build output target. 'static': Generates a static site for deployment on any static hosting service. 'server': Produces an application designed for deployment on a server that supports server-side rendering (SSR).",
614
+ "description": "Defines the type of build output artifact. 'static': Generates a static site build artifact for deployment on any static hosting service. 'server': Generates a server application build artifact, required for applications using hybrid rendering or APIs.",
615
615
  "enum": ["static", "server"]
616
616
  }
617
617
  },
@@ -459,7 +459,7 @@ function getEsBuildCommonOptions(options) {
459
459
  };
460
460
  }
461
461
  function getEsBuildCommonPolyfillsOptions(options, namespace, tryToResolvePolyfillsAsRelative, loadResultCache) {
462
- const { jit, workspaceRoot, i18nOptions } = options;
462
+ const { jit, workspaceRoot, i18nOptions, externalPackages } = options;
463
463
  const buildOptions = getEsBuildCommonOptions(options);
464
464
  buildOptions.splitting = false;
465
465
  buildOptions.plugins ??= [];
@@ -472,8 +472,10 @@ function getEsBuildCommonPolyfillsOptions(options, namespace, tryToResolvePolyfi
472
472
  // Locale data should go first so that project provided polyfill code can augment if needed.
473
473
  let needLocaleDataPlugin = false;
474
474
  if (i18nOptions.shouldInline) {
475
- // Remove localize polyfill as this is not needed for build time i18n.
476
- polyfills = polyfills.filter((path) => !path.startsWith('@angular/localize'));
475
+ if (!externalPackages) {
476
+ // Remove localize polyfill when i18n inline transformation have been applied to all the packages.
477
+ polyfills = polyfills.filter((path) => !path.startsWith('@angular/localize'));
478
+ }
477
479
  // Add locale data for all active locales
478
480
  // TODO: Inject each individually within the inlining process itself
479
481
  for (const locale of i18nOptions.inlineLocales) {
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.normalizeCacheOptions = normalizeCacheOptions;
11
11
  const node_path_1 = require("node:path");
12
12
  /** Version placeholder is replaced during the build process with actual package version */
13
- const VERSION = '20.3.8';
13
+ const VERSION = '20.3.10';
14
14
  function hasCacheMetadata(value) {
15
15
  return (!!value &&
16
16
  typeof value === 'object' &&