@angular/build 20.3.1 → 20.3.3

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.1",
3
+ "version": "20.3.3",
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.1",
26
+ "@angular-devkit/architect": "0.2003.3",
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",
@@ -41,7 +41,7 @@
41
41
  "parse5-html-rewriting-stream": "8.0.0",
42
42
  "picomatch": "4.0.3",
43
43
  "piscina": "5.1.3",
44
- "rolldown": "1.0.0-beta.32",
44
+ "rolldown": "1.0.0-beta.38",
45
45
  "sass": "1.90.0",
46
46
  "semver": "7.7.2",
47
47
  "source-map-support": "0.5.21",
@@ -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.1",
63
+ "@angular/ssr": "^20.3.3",
64
64
  "karma": "^6.4.0",
65
65
  "less": "^4.2.0",
66
66
  "ng-packagr": "^20.0.0",
@@ -112,7 +112,7 @@
112
112
  "type": "git",
113
113
  "url": "https://github.com/angular/angular-cli.git"
114
114
  },
115
- "packageManager": "pnpm@10.15.1",
115
+ "packageManager": "pnpm@10.17.1",
116
116
  "engines": {
117
117
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
118
118
  "npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
@@ -198,7 +198,8 @@ async function optimizeChunks(original, sourcemap) {
198
198
  ],
199
199
  });
200
200
  const result = await bundle.generate({
201
- minify: { mangle: false, compress: false, removeWhitespace: true },
201
+ minify: { mangle: false, compress: false },
202
+ advancedChunks: { minSize: 8192 },
202
203
  sourcemap,
203
204
  chunkFileNames: (chunkInfo) => `${chunkInfo.name.replace(/-[a-zA-Z0-9]{8}$/, '')}-[hash].js`,
204
205
  });
@@ -418,8 +418,6 @@ function getEsBuildCommonOptions(options) {
418
418
  packages = 'external';
419
419
  }
420
420
  }
421
- const minifySyntax = optimizationOptions.scripts;
422
- const minifyIdentifiers = minifySyntax && environment_options_1.allowMangle;
423
421
  return {
424
422
  absWorkingDir: workspaceRoot,
425
423
  format: 'esm',
@@ -431,10 +429,9 @@ function getEsBuildCommonOptions(options) {
431
429
  metafile: true,
432
430
  legalComments: options.extractLicenses ? 'none' : 'eof',
433
431
  logLevel: options.verbose && !jsonLogs ? 'debug' : 'silent',
434
- keepNames: !minifyIdentifiers,
435
- minifyIdentifiers,
436
- minifySyntax,
437
- minifyWhitespace: minifySyntax,
432
+ minifyIdentifiers: optimizationOptions.scripts && environment_options_1.allowMangle,
433
+ minifySyntax: optimizationOptions.scripts,
434
+ minifyWhitespace: optimizationOptions.scripts,
438
435
  pure: ['forwardRef'],
439
436
  outdir: workspaceRoot,
440
437
  outExtension: outExtension ? { '.js': `.${outExtension}` } : undefined,
@@ -451,7 +448,7 @@ function getEsBuildCommonOptions(options) {
451
448
  // Only set to false when script optimizations are enabled. It should not be set to true because
452
449
  // Angular turns `ngDevMode` into an object for development debugging purposes when not defined
453
450
  // which a constant true value would break.
454
- ...(minifySyntax ? { 'ngDevMode': 'false' } : undefined),
451
+ ...(optimizationOptions.scripts ? { 'ngDevMode': 'false' } : undefined),
455
452
  'ngJitMode': jit ? 'true' : 'false',
456
453
  'ngServerMode': 'false',
457
454
  'ngHmrMode': options.templateUpdates ? 'true' : 'false',
@@ -53,7 +53,6 @@ function getDepOptimizationConfig({ disabled, exclude, include, target, zoneless
53
53
  esbuildOptions: {
54
54
  // Set esbuild supported targets.
55
55
  target,
56
- keepNames: true,
57
56
  supported: (0, utils_1.getFeatureSupport)(target, zoneless),
58
57
  plugins,
59
58
  loader,
@@ -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.1';
13
+ const VERSION = '20.3.3';
14
14
  function hasCacheMetadata(value) {
15
15
  return (!!value &&
16
16
  typeof value === 'object' &&