@angular/build 18.0.0-rc.1 → 18.0.0-rc.2
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": "18.0.0-rc.
|
|
3
|
+
"version": "18.0.0-rc.2",
|
|
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.1800.0-rc.
|
|
26
|
+
"@angular-devkit/architect": "0.1800.0-rc.2",
|
|
27
27
|
"@babel/core": "7.24.5",
|
|
28
28
|
"@babel/helper-annotate-as-pure": "7.22.5",
|
|
29
29
|
"@babel/helper-split-export-declaration": "7.24.5",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"ansi-colors": "4.1.3",
|
|
32
32
|
"browserslist": "^4.23.0",
|
|
33
33
|
"critters": "0.0.22",
|
|
34
|
-
"esbuild": "0.
|
|
34
|
+
"esbuild": "0.21.1",
|
|
35
35
|
"fast-glob": "3.3.2",
|
|
36
36
|
"https-proxy-agent": "7.0.4",
|
|
37
37
|
"inquirer": "9.2.20",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"piscina": "4.4.0",
|
|
43
43
|
"parse5-html-rewriting-stream": "7.0.0",
|
|
44
44
|
"postcss": "8.4.38",
|
|
45
|
-
"sass": "1.
|
|
46
|
-
"semver": "7.6.
|
|
47
|
-
"undici": "6.
|
|
45
|
+
"sass": "1.77.0",
|
|
46
|
+
"semver": "7.6.1",
|
|
47
|
+
"undici": "6.16.0",
|
|
48
48
|
"vite": "5.2.11",
|
|
49
49
|
"watchpack": "2.4.1"
|
|
50
50
|
},
|
|
@@ -15,6 +15,7 @@ const magic_string_1 = __importDefault(require("magic-string"));
|
|
|
15
15
|
const node_fs_1 = require("node:fs");
|
|
16
16
|
const node_path_1 = require("node:path");
|
|
17
17
|
const node_url_1 = require("node:url");
|
|
18
|
+
const error_1 = require("../../utils/error");
|
|
18
19
|
const lexer_1 = require("./lexer");
|
|
19
20
|
/**
|
|
20
21
|
* Ensures that a bare specifier URL path that is intended to be treated as
|
|
@@ -195,8 +196,15 @@ class RelativeUrlRebasingImporter extends UrlRebasingImporter {
|
|
|
195
196
|
try {
|
|
196
197
|
entries = (0, node_fs_1.readdirSync)(directory, { withFileTypes: true });
|
|
197
198
|
}
|
|
198
|
-
catch {
|
|
199
|
-
|
|
199
|
+
catch (error) {
|
|
200
|
+
(0, error_1.assertIsError)(error);
|
|
201
|
+
// If the containing directory does not exist return null to indicate it cannot be resolved
|
|
202
|
+
if (error.code === 'ENOENT') {
|
|
203
|
+
return null;
|
|
204
|
+
}
|
|
205
|
+
throw new Error(`Error reading directory ["${directory}"] while resolving Sass import`, {
|
|
206
|
+
cause: error,
|
|
207
|
+
});
|
|
200
208
|
}
|
|
201
209
|
foundDefaults = [];
|
|
202
210
|
foundImports = [];
|
|
@@ -205,7 +213,7 @@ class RelativeUrlRebasingImporter extends UrlRebasingImporter {
|
|
|
205
213
|
let isDirectory;
|
|
206
214
|
let isFile;
|
|
207
215
|
if (entry.isSymbolicLink()) {
|
|
208
|
-
const stats = (0, node_fs_1.statSync)((0, node_path_1.join)(
|
|
216
|
+
const stats = (0, node_fs_1.statSync)((0, node_path_1.join)(directory, entry.name));
|
|
209
217
|
isDirectory = stats.isDirectory();
|
|
210
218
|
isFile = stats.isFile();
|
|
211
219
|
}
|
|
@@ -13,8 +13,8 @@ function formatSize(size) {
|
|
|
13
13
|
return '0 bytes';
|
|
14
14
|
}
|
|
15
15
|
const abbreviations = ['bytes', 'kB', 'MB', 'GB'];
|
|
16
|
-
const index = Math.floor(Math.log(size) / Math.log(
|
|
17
|
-
const roundedSize = size / Math.pow(
|
|
16
|
+
const index = Math.floor(Math.log(size) / Math.log(1000));
|
|
17
|
+
const roundedSize = size / Math.pow(1000, index);
|
|
18
18
|
// bytes don't have a fraction
|
|
19
19
|
const fractionDigits = index === 0 ? 0 : 2;
|
|
20
20
|
return `${roundedSize.toFixed(fractionDigits)} ${abbreviations[index]}`;
|
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.normalizeCacheOptions = void 0;
|
|
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 = '18.0.0-rc.
|
|
13
|
+
const VERSION = '18.0.0-rc.2';
|
|
14
14
|
function hasCacheMetadata(value) {
|
|
15
15
|
return (!!value &&
|
|
16
16
|
typeof value === 'object' &&
|
|
@@ -36,7 +36,8 @@ function patchFetchToLoadInMemoryAssets() {
|
|
|
36
36
|
else {
|
|
37
37
|
return originalFetch(input, init);
|
|
38
38
|
}
|
|
39
|
-
const {
|
|
39
|
+
const { protocol } = url;
|
|
40
|
+
const pathname = decodeURIComponent(url.pathname);
|
|
40
41
|
if (protocol !== RESOLVE_PROTOCOL || !assetFiles[pathname]) {
|
|
41
42
|
// Only handle relative requests or files that are in assets.
|
|
42
43
|
return originalFetch(input, init);
|