@angular-devkit/build-angular 21.0.0-next.5 → 21.0.0-next.6

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": "21.0.0-next.5",
3
+ "version": "21.0.0-next.6",
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.2100.0-next.5",
11
- "@angular-devkit/build-webpack": "0.2100.0-next.5",
12
- "@angular-devkit/core": "21.0.0-next.5",
13
- "@angular/build": "21.0.0-next.5",
10
+ "@angular-devkit/architect": "0.2100.0-next.6",
11
+ "@angular-devkit/build-webpack": "0.2100.0-next.6",
12
+ "@angular-devkit/core": "21.0.0-next.6",
13
+ "@angular/build": "21.0.0-next.6",
14
14
  "@babel/core": "7.28.4",
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.4",
23
23
  "@discoveryjs/json-ext": "0.6.3",
24
- "@ngtools/webpack": "21.0.0-next.5",
24
+ "@ngtools/webpack": "21.0.0-next.6",
25
25
  "ansi-colors": "4.1.3",
26
26
  "autoprefixer": "10.4.21",
27
27
  "babel-loader": "10.0.0",
@@ -46,7 +46,7 @@
46
46
  "postcss-loader": "8.2.0",
47
47
  "resolve-url-loader": "5.0.0",
48
48
  "rxjs": "7.8.2",
49
- "sass": "1.93.1",
49
+ "sass": "1.93.2",
50
50
  "sass-loader": "16.0.5",
51
51
  "semver": "7.7.2",
52
52
  "source-map-loader": "5.0.0",
@@ -55,8 +55,8 @@
55
55
  "tinyglobby": "0.2.15",
56
56
  "tree-kill": "1.2.2",
57
57
  "tslib": "2.8.1",
58
- "webpack": "5.101.3",
59
- "webpack-dev-middleware": "7.4.3",
58
+ "webpack": "5.102.0",
59
+ "webpack-dev-middleware": "7.4.5",
60
60
  "webpack-dev-server": "5.2.2",
61
61
  "webpack-merge": "6.0.1",
62
62
  "webpack-subresource-integrity": "5.1.0"
@@ -71,7 +71,7 @@
71
71
  "@angular/platform-browser": "^21.0.0-next.0",
72
72
  "@angular/platform-server": "^21.0.0-next.0",
73
73
  "@angular/service-worker": "^21.0.0-next.0",
74
- "@angular/ssr": "^21.0.0-next.5",
74
+ "@angular/ssr": "^21.0.0-next.6",
75
75
  "@web/test-runner": "^0.20.0",
76
76
  "browser-sync": "^3.0.2",
77
77
  "jest": "^29.5.0",
@@ -37,7 +37,7 @@ export interface ApplicationPresetOptions {
37
37
  inputSourceMap: unknown;
38
38
  };
39
39
  optimize?: {
40
- pureTopLevel: boolean;
40
+ topLevelSafeMode: boolean;
41
41
  wrapDecorators: boolean;
42
42
  };
43
43
  supportedBrowsers?: string[];
@@ -124,13 +124,7 @@ function default_1(api, options) {
124
124
  }
125
125
  if (options.optimize) {
126
126
  const { adjustStaticMembers, adjustTypeScriptEnums, elideAngularMetadata, markTopLevelPure, } = require('@angular/build/private');
127
- if (options.optimize.pureTopLevel) {
128
- plugins.push(markTopLevelPure);
129
- }
130
- plugins.push(elideAngularMetadata, adjustTypeScriptEnums, [
131
- adjustStaticMembers,
132
- { wrapDecorators: options.optimize.wrapDecorators },
133
- ]);
127
+ plugins.push([markTopLevelPure, { topLevelSafeMode: options.optimize.topLevelSafeMode }], elideAngularMetadata, adjustTypeScriptEnums, [adjustStaticMembers, { wrapDecorators: options.optimize.wrapDecorators }]);
134
128
  }
135
129
  if (options.instrumentCode) {
136
130
  plugins.push(require('../plugins/add-code-coverage').default);
@@ -99,7 +99,7 @@ exports.default = (0, babel_loader_1.custom)(() => {
99
99
  customOptions.optimize = {
100
100
  // Angular packages provide additional tested side effects guarantees and can use
101
101
  // otherwise unsafe optimizations. (@angular/platform-server/init) however has side-effects.
102
- pureTopLevel: AngularPackage && sideEffectFree,
102
+ topLevelSafeMode: !(AngularPackage && sideEffectFree),
103
103
  // JavaScript modules that are marked as side effect free are considered to have
104
104
  // no decorators that contain non-local effects.
105
105
  wrapDecorators: sideEffectFree,
@@ -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 = '21.0.0-next.5';
13
+ const VERSION = '21.0.0-next.6';
14
14
  function hasCacheMetadata(value) {
15
15
  return (!!value &&
16
16
  typeof value === 'object' &&