@angular/build 18.1.3 → 18.1.4
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.1.
|
|
3
|
+
"version": "18.1.4",
|
|
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.1801.
|
|
26
|
+
"@angular-devkit/architect": "0.1801.4",
|
|
27
27
|
"@babel/core": "7.24.7",
|
|
28
28
|
"@babel/helper-annotate-as-pure": "7.24.7",
|
|
29
29
|
"@babel/helper-split-export-declaration": "7.24.7",
|
|
@@ -37,7 +37,6 @@ exports.serveWithVite = serveWithVite;
|
|
|
37
37
|
exports.setupServer = setupServer;
|
|
38
38
|
const node_assert_1 = __importDefault(require("node:assert"));
|
|
39
39
|
const promises_1 = require("node:fs/promises");
|
|
40
|
-
const node_inspector_1 = __importDefault(require("node:inspector"));
|
|
41
40
|
const node_module_1 = require("node:module");
|
|
42
41
|
const node_path_1 = require("node:path");
|
|
43
42
|
const angular_memory_plugin_1 = require("../../tools/vite/angular-memory-plugin");
|
|
@@ -209,8 +208,9 @@ async function* serveWithVite(serverOptions, builderName, builderAction, context
|
|
|
209
208
|
context.logger.info('NOTE: Raw file sizes do not reflect development server per-request transformations.');
|
|
210
209
|
if (browserOptions.ssr && serverOptions.inspect) {
|
|
211
210
|
const { host, port } = serverOptions.inspect;
|
|
212
|
-
|
|
213
|
-
|
|
211
|
+
const { default: inspector } = await Promise.resolve().then(() => __importStar(require('node:inspector')));
|
|
212
|
+
inspector.open(port, host, true);
|
|
213
|
+
context.addTeardown(() => inspector.close());
|
|
214
214
|
}
|
|
215
215
|
const { root = '' } = await context.getProjectMetadata(projectName);
|
|
216
216
|
const projectRoot = (0, node_path_1.join)(context.workspaceRoot, root);
|
|
@@ -216,7 +216,7 @@ function createCompilerPlugin(pluginOptions, styleOptions) {
|
|
|
216
216
|
location: null,
|
|
217
217
|
notes: [
|
|
218
218
|
{
|
|
219
|
-
text: error instanceof Error ? error.stack ?? error.message : `${error}`,
|
|
219
|
+
text: error instanceof Error ? (error.stack ?? error.message) : `${error}`,
|
|
220
220
|
location: null,
|
|
221
221
|
},
|
|
222
222
|
],
|
|
@@ -243,7 +243,7 @@ function createCompilerPlugin(pluginOptions, styleOptions) {
|
|
|
243
243
|
location: null,
|
|
244
244
|
notes: [
|
|
245
245
|
{
|
|
246
|
-
text: error instanceof Error ? error.stack ?? error.message : `${error}`,
|
|
246
|
+
text: error instanceof Error ? (error.stack ?? error.message) : `${error}`,
|
|
247
247
|
location: null,
|
|
248
248
|
},
|
|
249
249
|
],
|
|
@@ -404,9 +404,10 @@ function createCompilerOptionsTransformer(setupWarnings, pluginOptions, preserve
|
|
|
404
404
|
});
|
|
405
405
|
compilerOptions.compilationMode = 'full';
|
|
406
406
|
}
|
|
407
|
-
// Enable incremental compilation by default if caching is enabled
|
|
408
|
-
if (
|
|
409
|
-
|
|
407
|
+
// Enable incremental compilation by default if caching is enabled and incremental is not explicitly disabled
|
|
408
|
+
if (compilerOptions.incremental !== false &&
|
|
409
|
+
pluginOptions.sourceFileCache?.persistentCachePath) {
|
|
410
|
+
compilerOptions.incremental = true;
|
|
410
411
|
// Set the build info file location to the configured cache directory
|
|
411
412
|
compilerOptions.tsBuildInfoFile = path.join(pluginOptions.sourceFileCache?.persistentCachePath, '.tsbuildinfo');
|
|
412
413
|
}
|
|
@@ -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 = '18.1.
|
|
13
|
+
const VERSION = '18.1.4';
|
|
14
14
|
function hasCacheMetadata(value) {
|
|
15
15
|
return (!!value &&
|
|
16
16
|
typeof value === 'object' &&
|