@angular/build 20.1.3 → 20.1.5

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.1.3",
3
+ "version": "20.1.5",
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.2001.3",
26
+ "@angular-devkit/architect": "0.2001.5",
27
27
  "@babel/core": "7.27.7",
28
28
  "@babel/helper-annotate-as-pure": "7.27.3",
29
29
  "@babel/helper-split-export-declaration": "7.24.7",
@@ -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.1.3",
63
+ "@angular/ssr": "^20.1.5",
64
64
  "karma": "^6.4.0",
65
65
  "less": "^4.2.0",
66
66
  "ng-packagr": "^20.0.0",
@@ -13,6 +13,7 @@ const node_crypto_1 = require("node:crypto");
13
13
  const node_fs_1 = require("node:fs");
14
14
  const node_path_1 = require("node:path");
15
15
  const utils_1 = require("../utils");
16
+ const CSS_PREPROCESSOR_REGEXP = /\.(?:s[ac]ss|less|css)$/;
16
17
  const JS_TS_REGEXP = /\.[cm]?[tj]sx?$/;
17
18
  function createAngularAssetsMiddleware(server, assets, outputFiles, componentStyles, encapsulateStyle) {
18
19
  return function angularAssetsMiddleware(req, res, next) {
@@ -27,8 +28,8 @@ function createAngularAssetsMiddleware(server, assets, outputFiles, componentSty
27
28
  // Rewrite all build assets to a vite raw fs URL
28
29
  const asset = assets.get(pathname);
29
30
  if (asset) {
30
- // This is a workaround to serve JS and TS files without Vite transformations.
31
- if (JS_TS_REGEXP.test(extension)) {
31
+ // This is a workaround to serve CSS, JS and TS files without Vite transformations.
32
+ if (JS_TS_REGEXP.test(extension) || CSS_PREPROCESSOR_REGEXP.test(extension)) {
32
33
  const contents = (0, node_fs_1.readFileSync)(asset.source);
33
34
  const etag = `W/${(0, node_crypto_1.createHash)('sha256').update(contents).digest('hex')}`;
34
35
  if (checkAndHandleEtag(req, res, etag)) {
@@ -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.1.3';
13
+ const VERSION = '20.1.5';
14
14
  function hasCacheMetadata(value) {
15
15
  return (!!value &&
16
16
  typeof value === 'object' &&