@angular-devkit/build-angular 20.3.24 → 20.3.25

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,16 +1,16 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-angular",
3
- "version": "20.3.24",
3
+ "version": "20.3.25",
4
4
  "description": "Angular Webpack Build Facade",
5
5
  "main": "src/index.js",
6
6
  "typings": "src/index.d.ts",
7
7
  "builders": "builders.json",
8
8
  "dependencies": {
9
9
  "@ampproject/remapping": "2.3.0",
10
- "@angular-devkit/architect": "0.2003.24",
11
- "@angular-devkit/build-webpack": "0.2003.24",
12
- "@angular-devkit/core": "20.3.24",
13
- "@angular/build": "20.3.24",
10
+ "@angular-devkit/architect": "0.2003.25",
11
+ "@angular-devkit/build-webpack": "0.2003.25",
12
+ "@angular-devkit/core": "20.3.25",
13
+ "@angular/build": "20.3.25",
14
14
  "@babel/core": "7.28.3",
15
15
  "@babel/generator": "7.28.3",
16
16
  "@babel/helper-annotate-as-pure": "7.27.3",
@@ -21,7 +21,7 @@
21
21
  "@babel/preset-env": "7.28.3",
22
22
  "@babel/runtime": "7.28.3",
23
23
  "@discoveryjs/json-ext": "0.6.3",
24
- "@ngtools/webpack": "20.3.24",
24
+ "@ngtools/webpack": "20.3.25",
25
25
  "ansi-colors": "4.1.3",
26
26
  "autoprefixer": "10.4.21",
27
27
  "babel-loader": "10.0.0",
@@ -43,7 +43,7 @@
43
43
  "ora": "8.2.0",
44
44
  "picomatch": "4.0.4",
45
45
  "piscina": "5.1.3",
46
- "postcss": "8.5.6",
46
+ "postcss": "8.5.12",
47
47
  "postcss-loader": "8.1.1",
48
48
  "resolve-url-loader": "5.0.0",
49
49
  "rxjs": "7.8.2",
@@ -71,7 +71,7 @@
71
71
  "@angular/platform-browser": "^20.0.0",
72
72
  "@angular/platform-server": "^20.0.0",
73
73
  "@angular/service-worker": "^20.0.0",
74
- "@angular/ssr": "^20.3.24",
74
+ "@angular/ssr": "^20.3.25",
75
75
  "@web/test-runner": "^0.20.0",
76
76
  "browser-sync": "^3.0.2",
77
77
  "jest": "^29.5.0 || ^30.2.0",
@@ -87,10 +87,11 @@ async function _renderUniversal(options, context, browserResult, serverResult, s
87
87
  const browserIndexOutputPath = path.join(outputPath, 'index.html');
88
88
  const indexHtml = await fs.promises.readFile(browserIndexOutputPath, 'utf8');
89
89
  const serverBundlePath = await _getServerModuleBundlePath(options, context, serverResult, localeDirectory);
90
+ const route = options.route;
90
91
  let html = await renderWorker.run({
91
92
  serverBundlePath,
92
93
  document: indexHtml,
93
- url: options.route,
94
+ url: route?.[0] === '/' ? route : '/' + route,
94
95
  });
95
96
  // Overwrite the client index file.
96
97
  const outputIndexPath = options.outputIndexPath
@@ -172,7 +172,7 @@ async function _renderUniversal(options, context, browserResult, serverResult, b
172
172
  inlineCriticalCss: !!normalizedStylesOptimization.inlineCritical,
173
173
  minifyCss: !!normalizedStylesOptimization.minify,
174
174
  outputPath,
175
- route,
175
+ route: route[0] === '/' ? route : '/' + route,
176
176
  serverBundlePath,
177
177
  };
178
178
  return worker.run(options);
@@ -55,6 +55,7 @@ exports.getStatsOptions = getStatsOptions;
55
55
  exports.isPackageInstalled = isPackageInstalled;
56
56
  const fast_glob_1 = __importDefault(require("fast-glob"));
57
57
  const node_crypto_1 = require("node:crypto");
58
+ const node_module_1 = require("node:module");
58
59
  const path = __importStar(require("node:path"));
59
60
  const schema_1 = require("../../../builders/browser/schema");
60
61
  const package_version_1 = require("../../../utils/package-version");
@@ -294,7 +295,8 @@ function getStatsOptions(verbose = false) {
294
295
  */
295
296
  function isPackageInstalled(root, name) {
296
297
  try {
297
- require.resolve(name, { paths: [root] });
298
+ const resolve = (0, node_module_1.createRequire)(root + '/').resolve;
299
+ resolve(name);
298
300
  return true;
299
301
  }
300
302
  catch {
@@ -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.24';
13
+ const VERSION = '20.3.25';
14
14
  function hasCacheMetadata(value) {
15
15
  return (!!value &&
16
16
  typeof value === 'object' &&