@angular/build 19.2.10 → 19.2.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/build",
3
- "version": "19.2.10",
3
+ "version": "19.2.12",
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.1902.10",
26
+ "@angular-devkit/architect": "0.1902.12",
27
27
  "@babel/core": "7.26.10",
28
28
  "@babel/helper-annotate-as-pure": "7.25.9",
29
29
  "@babel/helper-split-export-declaration": "7.24.7",
@@ -32,7 +32,7 @@
32
32
  "@vitejs/plugin-basic-ssl": "1.2.0",
33
33
  "beasties": "0.3.2",
34
34
  "browserslist": "^4.23.0",
35
- "esbuild": "0.25.1",
35
+ "esbuild": "0.25.4",
36
36
  "fast-glob": "3.3.3",
37
37
  "https-proxy-agent": "7.0.6",
38
38
  "istanbul-lib-instrument": "6.0.3",
@@ -58,7 +58,7 @@
58
58
  "@angular/localize": "^19.0.0 || ^19.2.0-next.0",
59
59
  "@angular/platform-server": "^19.0.0 || ^19.2.0-next.0",
60
60
  "@angular/service-worker": "^19.0.0 || ^19.2.0-next.0",
61
- "@angular/ssr": "^19.2.10",
61
+ "@angular/ssr": "^19.2.12",
62
62
  "karma": "^6.4.0",
63
63
  "less": "^4.2.0",
64
64
  "ng-packagr": "^19.0.0 || ^19.2.0-next.0",
@@ -84,7 +84,7 @@ class AngularAssetsMiddleware {
84
84
  }
85
85
  const file = this.latestBuildFiles.files[pathname];
86
86
  if (file?.origin === 'disk') {
87
- this.serveFile(file.inputPath, undefined, res);
87
+ this.serveFile(file.inputPath, undefined, res, undefined, undefined, /* doNotCache */ true);
88
88
  return;
89
89
  }
90
90
  else if (file?.origin === 'memory') {
@@ -13,6 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.BundlerContext = exports.BuildOutputFileType = void 0;
14
14
  const esbuild_1 = require("esbuild");
15
15
  const node_assert_1 = __importDefault(require("node:assert"));
16
+ const node_module_1 = require("node:module");
16
17
  const node_path_1 = require("node:path");
17
18
  const load_result_cache_1 = require("./load-result-cache");
18
19
  const utils_1 = require("./utils");
@@ -198,10 +199,11 @@ class BundlerContext {
198
199
  if (this.incremental) {
199
200
  // Add input files except virtual angular files which do not exist on disk
200
201
  for (const input of Object.keys(result.metafile.inputs)) {
201
- if (!isInternalAngularFile(input)) {
202
- // input file paths are always relative to the workspace root
203
- this.watchFiles.add((0, node_path_1.join)(this.workspaceRoot, input));
202
+ if (isInternalAngularFile(input) || isInternalBundlerFile(input)) {
203
+ continue;
204
204
  }
205
+ // Input file paths are always relative to the workspace root
206
+ this.watchFiles.add((0, node_path_1.join)(this.workspaceRoot, input));
205
207
  }
206
208
  }
207
209
  // Return if the build encountered any errors
@@ -380,3 +382,16 @@ exports.BundlerContext = BundlerContext;
380
382
  function isInternalAngularFile(file) {
381
383
  return file.startsWith('angular:');
382
384
  }
385
+ function isInternalBundlerFile(file) {
386
+ // Bundler virtual files such as "<define:???>" or "<runtime>"
387
+ if (file[0] === '<' && file.at(-1) === '>') {
388
+ return true;
389
+ }
390
+ const DISABLED_BUILTIN = '(disabled):';
391
+ // Disabled node builtins such as "/some/path/(disabled):fs"
392
+ const disabledIndex = file.indexOf(DISABLED_BUILTIN);
393
+ if (disabledIndex >= 0) {
394
+ return node_module_1.builtinModules.includes(file.slice(disabledIndex + DISABLED_BUILTIN.length));
395
+ }
396
+ return false;
397
+ }
@@ -93,7 +93,7 @@ async function loadProxyConfiguration(root, proxyConfig) {
93
93
  }
94
94
  catch (e) {
95
95
  (0, error_1.assertIsError)(e);
96
- if (e.code === 'ERR_REQUIRE_ESM') {
96
+ if (e.code === 'ERR_REQUIRE_ESM' || e.code === 'ERR_REQUIRE_ASYNC_MODULE') {
97
97
  // Load the ESM configuration file using the TypeScript dynamic import workaround.
98
98
  // Once TypeScript provides support for keeping the dynamic import this workaround can be
99
99
  // changed to a direct dynamic import.
@@ -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 = '19.2.10';
13
+ const VERSION = '19.2.12';
14
14
  function hasCacheMetadata(value) {
15
15
  return (!!value &&
16
16
  typeof value === 'object' &&