@angular-devkit/build-angular 21.0.0-next.2 → 21.0.0-next.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,17 +1,17 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-angular",
3
- "version": "21.0.0-next.2",
3
+ "version": "21.0.0-next.3",
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.2",
11
- "@angular-devkit/build-webpack": "0.2100.0-next.2",
12
- "@angular-devkit/core": "21.0.0-next.2",
13
- "@angular/build": "21.0.0-next.2",
14
- "@babel/core": "7.28.3",
10
+ "@angular-devkit/architect": "0.2100.0-next.3",
11
+ "@angular-devkit/build-webpack": "0.2100.0-next.3",
12
+ "@angular-devkit/core": "21.0.0-next.3",
13
+ "@angular/build": "21.0.0-next.3",
14
+ "@babel/core": "7.28.4",
15
15
  "@babel/generator": "7.28.3",
16
16
  "@babel/helper-annotate-as-pure": "7.27.3",
17
17
  "@babel/helper-split-export-declaration": "7.24.7",
@@ -19,9 +19,9 @@
19
19
  "@babel/plugin-transform-async-to-generator": "7.27.1",
20
20
  "@babel/plugin-transform-runtime": "7.28.3",
21
21
  "@babel/preset-env": "7.28.3",
22
- "@babel/runtime": "7.28.3",
22
+ "@babel/runtime": "7.28.4",
23
23
  "@discoveryjs/json-ext": "0.6.3",
24
- "@ngtools/webpack": "21.0.0-next.2",
24
+ "@ngtools/webpack": "21.0.0-next.3",
25
25
  "ansi-colors": "4.1.3",
26
26
  "autoprefixer": "10.4.21",
27
27
  "babel-loader": "10.0.0",
@@ -29,7 +29,6 @@
29
29
  "copy-webpack-plugin": "13.0.1",
30
30
  "css-loader": "7.1.2",
31
31
  "esbuild-wasm": "0.25.9",
32
- "fast-glob": "3.3.3",
33
32
  "http-proxy-middleware": "3.0.5",
34
33
  "istanbul-lib-instrument": "6.0.3",
35
34
  "jsonc-parser": "3.3.1",
@@ -47,16 +46,17 @@
47
46
  "postcss-loader": "8.2.0",
48
47
  "resolve-url-loader": "5.0.0",
49
48
  "rxjs": "7.8.2",
50
- "sass": "1.92.0",
49
+ "sass": "1.92.1",
51
50
  "sass-loader": "16.0.5",
52
51
  "semver": "7.7.2",
53
52
  "source-map-loader": "5.0.0",
54
53
  "source-map-support": "0.5.21",
55
54
  "terser": "5.44.0",
55
+ "tinyglobby": "0.2.15",
56
56
  "tree-kill": "1.2.2",
57
57
  "tslib": "2.8.1",
58
58
  "webpack": "5.101.3",
59
- "webpack-dev-middleware": "7.4.2",
59
+ "webpack-dev-middleware": "7.4.3",
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.2",
74
+ "@angular/ssr": "^21.0.0-next.3",
75
75
  "@web/test-runner": "^0.20.0",
76
76
  "browser-sync": "^3.0.2",
77
77
  "jest": "^29.5.0",
@@ -80,7 +80,7 @@
80
80
  "ng-packagr": "^21.0.0-next.0",
81
81
  "protractor": "^7.0.0",
82
82
  "tailwindcss": "^2.0.0 || ^3.0.0 || ^4.0.0",
83
- "typescript": ">=5.8 <6.0"
83
+ "typescript": ">=5.9 <6.0"
84
84
  },
85
85
  "peerDependenciesMeta": {
86
86
  "@angular/core": {
@@ -167,6 +167,7 @@ async function initialize(options, context, webpackConfigurationTransform) {
167
167
  {
168
168
  plugins: [
169
169
  new webpack_1.default.DefinePlugin({
170
+ 'ngJitMode': false,
170
171
  'ngServerMode': true,
171
172
  }),
172
173
  ],
@@ -46,6 +46,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
46
46
  exports.getStylesConfig = getStylesConfig;
47
47
  const private_1 = require("@angular/build/private");
48
48
  const mini_css_extract_plugin_1 = __importDefault(require("mini-css-extract-plugin"));
49
+ const node_module_1 = require("node:module");
49
50
  const path = __importStar(require("node:path"));
50
51
  const node_url_1 = require("node:url");
51
52
  const plugins_1 = require("../plugins");
@@ -88,9 +89,9 @@ async function getStylesConfig(wco) {
88
89
  const searchDirectories = await (0, private_1.generateSearchDirectories)([projectRoot, root]);
89
90
  const postcssConfig = await (0, private_1.loadPostcssConfiguration)(searchDirectories);
90
91
  if (postcssConfig) {
91
- for (const [pluginName, pluginOptions] of postcssConfig.plugins) {
92
- const resolvedPlugin = require.resolve(pluginName, { paths: [root] });
93
- const { default: plugin } = await Promise.resolve(`${resolvedPlugin}`).then(s => __importStar(require(s)));
92
+ const postCssPluginRequire = (0, node_module_1.createRequire)(path.dirname(postcssConfig.configPath) + '/');
93
+ for (const [pluginName, pluginOptions] of postcssConfig.config.plugins) {
94
+ const plugin = postCssPluginRequire(pluginName);
94
95
  if (typeof plugin !== 'function' || plugin.postcss !== true) {
95
96
  throw new Error(`Attempted to load invalid Postcss plugin: "${pluginName}"`);
96
97
  }
@@ -39,9 +39,6 @@ var __importStar = (this && this.__importStar) || (function () {
39
39
  return result;
40
40
  };
41
41
  })();
42
- var __importDefault = (this && this.__importDefault) || function (mod) {
43
- return (mod && mod.__esModule) ? mod : { "default": mod };
44
- };
45
42
  Object.defineProperty(exports, "__esModule", { value: true });
46
43
  exports.getOutputHashFormat = getOutputHashFormat;
47
44
  exports.normalizeExtraEntryPoints = normalizeExtraEntryPoints;
@@ -53,9 +50,9 @@ exports.globalScriptsByBundleName = globalScriptsByBundleName;
53
50
  exports.assetPatterns = assetPatterns;
54
51
  exports.getStatsOptions = getStatsOptions;
55
52
  exports.isPackageInstalled = isPackageInstalled;
56
- const fast_glob_1 = __importDefault(require("fast-glob"));
57
53
  const node_crypto_1 = require("node:crypto");
58
54
  const path = __importStar(require("node:path"));
55
+ const tinyglobby_1 = require("tinyglobby");
59
56
  const schema_1 = require("../../../builders/browser/schema");
60
57
  const package_version_1 = require("../../../utils/package-version");
61
58
  function getOutputHashFormat(outputHashing = schema_1.OutputHashing.None, length = 20) {
@@ -139,7 +136,7 @@ function getInstrumentationExcludedPaths(root, excludedPaths) {
139
136
  const excluded = new Set();
140
137
  for (const excludeGlob of excludedPaths) {
141
138
  const excludePath = excludeGlob[0] === '/' ? excludeGlob.slice(1) : excludeGlob;
142
- fast_glob_1.default.sync(excludePath, { cwd: root }).forEach((p) => excluded.add(path.join(root, p)));
139
+ (0, tinyglobby_1.globSync)(excludePath, { cwd: root }).forEach((p) => excluded.add(path.join(root, p)));
143
140
  }
144
141
  return excluded;
145
142
  }
@@ -11,15 +11,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.copyAssets = copyAssets;
14
- const fast_glob_1 = __importDefault(require("fast-glob"));
15
14
  const node_fs_1 = __importDefault(require("node:fs"));
16
15
  const node_path_1 = __importDefault(require("node:path"));
16
+ const tinyglobby_1 = require("tinyglobby");
17
17
  async function copyAssets(entries, basePaths, root, changed) {
18
18
  const defaultIgnore = ['.gitkeep', '**/.DS_Store', '**/Thumbs.db'];
19
19
  const outputFiles = [];
20
20
  for (const entry of entries) {
21
21
  const cwd = node_path_1.default.resolve(root, entry.input);
22
- const files = await (0, fast_glob_1.default)(entry.glob, {
22
+ const files = await (0, tinyglobby_1.glob)(entry.glob, {
23
23
  cwd,
24
24
  dot: true,
25
25
  ignore: entry.ignore ? defaultIgnore.concat(entry.ignore) : defaultIgnore,
@@ -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.2';
13
+ const VERSION = '21.0.0-next.3';
14
14
  function hasCacheMetadata(value) {
15
15
  return (!!value &&
16
16
  typeof value === 'object' &&
@@ -5,7 +5,7 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
- import fastGlob from 'fast-glob';
8
+ import { glob as globFn } from 'tinyglobby';
9
9
  /**
10
10
  * Finds all test files in the project.
11
11
  *
@@ -15,4 +15,4 @@ import fastGlob from 'fast-glob';
15
15
  * testing purposes.
16
16
  * @returns A set of all test files in the project.
17
17
  */
18
- export declare function findTestFiles(include: string[], exclude: string[], workspaceRoot: string, glob?: typeof fastGlob): Promise<Set<string>>;
18
+ export declare function findTestFiles(include: string[], exclude: string[], workspaceRoot: string, glob?: typeof globFn): Promise<Set<string>>;
@@ -6,12 +6,9 @@
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
7
  * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
- var __importDefault = (this && this.__importDefault) || function (mod) {
10
- return (mod && mod.__esModule) ? mod : { "default": mod };
11
- };
12
9
  Object.defineProperty(exports, "__esModule", { value: true });
13
10
  exports.findTestFiles = findTestFiles;
14
- const fast_glob_1 = __importDefault(require("fast-glob"));
11
+ const tinyglobby_1 = require("tinyglobby");
15
12
  /**
16
13
  * Finds all test files in the project.
17
14
  *
@@ -21,7 +18,7 @@ const fast_glob_1 = __importDefault(require("fast-glob"));
21
18
  * testing purposes.
22
19
  * @returns A set of all test files in the project.
23
20
  */
24
- async function findTestFiles(include, exclude, workspaceRoot, glob = fast_glob_1.default) {
21
+ async function findTestFiles(include, exclude, workspaceRoot, glob = tinyglobby_1.glob) {
25
22
  const globOptions = {
26
23
  cwd: workspaceRoot,
27
24
  ignore: ['node_modules/**'].concat(exclude),