@angular/build 18.1.0-next.3 → 18.1.0-rc.0
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 +4 -4
- package/src/builders/application/index.d.ts +1 -1
- package/src/builders/dev-server/index.d.ts +3 -3
- package/src/builders/dev-server/internal.d.ts +3 -3
- package/src/builders/dev-server/vite-server.js +1 -4
- package/src/index.d.ts +2 -2
- package/src/private.d.ts +6 -5
- package/src/private.js +4 -2
- package/src/tools/{esbuild/angular → angular}/compilation/angular-compilation.js +3 -3
- package/src/tools/{esbuild/angular → angular}/compilation/aot-compilation.js +3 -3
- package/src/tools/{esbuild/angular → angular}/compilation/factory.js +1 -1
- package/src/tools/{esbuild/angular → angular}/compilation/jit-compilation.js +3 -3
- package/src/tools/{esbuild/angular → angular}/compilation/parallel-worker.js +1 -1
- package/src/tools/{esbuild/angular → angular/transformers}/jit-resource-transformer.js +1 -1
- package/src/tools/babel/plugins/adjust-static-class-members.js +0 -1
- package/src/tools/esbuild/angular/compiler-plugin.js +18 -3
- package/src/tools/esbuild/angular/jit-plugin-callbacks.js +1 -1
- package/src/tools/esbuild/bundler-context.d.ts +1 -0
- package/src/tools/esbuild/bundler-context.js +6 -3
- package/src/utils/bundle-calculator.d.ts +1 -1
- package/src/utils/index-file/inline-fonts.js +1 -1
- package/src/utils/normalize-cache.js +1 -1
- /package/src/tools/{esbuild/angular → angular}/angular-host.d.ts +0 -0
- /package/src/tools/{esbuild/angular → angular}/angular-host.js +0 -0
- /package/src/tools/{esbuild/angular → angular}/compilation/angular-compilation.d.ts +0 -0
- /package/src/tools/{esbuild/angular → angular}/compilation/aot-compilation.d.ts +0 -0
- /package/src/tools/{esbuild/angular → angular}/compilation/factory.d.ts +0 -0
- /package/src/tools/{esbuild/angular → angular}/compilation/index.d.ts +0 -0
- /package/src/tools/{esbuild/angular → angular}/compilation/index.js +0 -0
- /package/src/tools/{esbuild/angular → angular}/compilation/jit-compilation.d.ts +0 -0
- /package/src/tools/{esbuild/angular → angular}/compilation/noop-compilation.d.ts +0 -0
- /package/src/tools/{esbuild/angular → angular}/compilation/noop-compilation.js +0 -0
- /package/src/tools/{esbuild/angular → angular}/compilation/parallel-compilation.d.ts +0 -0
- /package/src/tools/{esbuild/angular → angular}/compilation/parallel-compilation.js +0 -0
- /package/src/tools/{esbuild/angular → angular}/compilation/parallel-worker.d.ts +0 -0
- /package/src/tools/{esbuild/angular/compilation → angular/transformers}/jit-bootstrap-transformer.d.ts +0 -0
- /package/src/tools/{esbuild/angular/compilation → angular/transformers}/jit-bootstrap-transformer.js +0 -0
- /package/src/tools/{esbuild/angular → angular/transformers}/jit-resource-transformer.d.ts +0 -0
- /package/src/tools/{esbuild/angular → angular/transformers}/web-worker-transformer.d.ts +0 -0
- /package/src/tools/{esbuild/angular → angular/transformers}/web-worker-transformer.js +0 -0
- /package/src/tools/{esbuild/angular → angular}/uri.d.ts +0 -0
- /package/src/tools/{esbuild/angular → angular}/uri.js +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/build",
|
|
3
|
-
"version": "18.1.0-
|
|
3
|
+
"version": "18.1.0-rc.0",
|
|
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.0-
|
|
26
|
+
"@angular-devkit/architect": "0.1801.0-rc.0",
|
|
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",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@vitejs/plugin-basic-ssl": "1.1.0",
|
|
32
32
|
"ansi-colors": "4.1.3",
|
|
33
33
|
"browserslist": "^4.23.0",
|
|
34
|
-
"critters": "0.0.
|
|
34
|
+
"critters": "0.0.24",
|
|
35
35
|
"esbuild": "0.21.5",
|
|
36
36
|
"fast-glob": "3.3.2",
|
|
37
37
|
"https-proxy-agent": "7.0.4",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"ora": "5.4.1",
|
|
42
42
|
"parse5-html-rewriting-stream": "7.0.0",
|
|
43
43
|
"picomatch": "4.0.2",
|
|
44
|
-
"piscina": "4.6.
|
|
44
|
+
"piscina": "4.6.1",
|
|
45
45
|
"sass": "1.77.6",
|
|
46
46
|
"semver": "7.6.2",
|
|
47
47
|
"undici": "6.19.2",
|
|
@@ -10,7 +10,7 @@ import type { Plugin } from 'esbuild';
|
|
|
10
10
|
import { BuildOutputFile } from '../../tools/esbuild/bundler-context';
|
|
11
11
|
import { ApplicationBuilderExtensions, ApplicationBuilderInternalOptions } from './options';
|
|
12
12
|
import { Schema as ApplicationBuilderOptions } from './schema';
|
|
13
|
-
export { ApplicationBuilderOptions };
|
|
13
|
+
export type { ApplicationBuilderOptions };
|
|
14
14
|
export declare function buildApplicationInternal(options: ApplicationBuilderInternalOptions, context: BuilderContext & {
|
|
15
15
|
signal?: AbortSignal;
|
|
16
16
|
}, infrastructureSettings?: {
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { execute } from './builder';
|
|
9
|
-
import { DevServerBuilderOutput } from './output';
|
|
10
|
-
import { Schema as DevServerBuilderOptions } from './schema';
|
|
11
|
-
export { DevServerBuilderOptions, DevServerBuilderOutput, execute as executeDevServerBuilder };
|
|
9
|
+
import type { DevServerBuilderOutput } from './output';
|
|
10
|
+
import type { Schema as DevServerBuilderOptions } from './schema';
|
|
11
|
+
export { type DevServerBuilderOptions, type DevServerBuilderOutput, execute as executeDevServerBuilder, };
|
|
12
12
|
declare const _default: import("../../../../../angular_devkit/architect/src/internal").Builder<DevServerBuilderOptions & import("../../../../../angular_devkit/core/src").JsonObject>;
|
|
13
13
|
export default _default;
|
|
14
14
|
export { execute as executeDevServer };
|
|
@@ -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
|
-
export { BuildOutputFile, BuildOutputFileType } from '@angular/build';
|
|
8
|
+
export { type BuildOutputFile, BuildOutputFileType } from '@angular/build';
|
|
9
9
|
export { createRxjsEsmResolutionPlugin } from '../../tools/esbuild/rxjs-esm-resolution-plugin';
|
|
10
10
|
export { JavaScriptTransformer } from '../../tools/esbuild/javascript-transformer';
|
|
11
11
|
export { getFeatureSupport, isZonelessApp } from '../../tools/esbuild/utils';
|
|
@@ -15,5 +15,5 @@ export { purgeStaleBuildCache } from '../../utils/purge-cache';
|
|
|
15
15
|
export { getSupportedBrowsers } from '../../utils/supported-browsers';
|
|
16
16
|
export { transformSupportedBrowsersToTargets } from '../../tools/esbuild/utils';
|
|
17
17
|
export { buildApplicationInternal } from '../../builders/application';
|
|
18
|
-
export { ApplicationBuilderInternalOptions } from '../../builders/application/options';
|
|
19
|
-
export { ExternalResultMetadata } from '../../tools/esbuild/bundler-execution-result';
|
|
18
|
+
export type { ApplicationBuilderInternalOptions } from '../../builders/application/options';
|
|
19
|
+
export type { ExternalResultMetadata } from '../../tools/esbuild/bundler-execution-result';
|
|
@@ -193,7 +193,7 @@ async function* serveWithVite(serverOptions, builderName, builderAction, context
|
|
|
193
193
|
server.config.server.fs.allow = [
|
|
194
194
|
...new Set([...server.config.server.fs.allow, ...assetFiles.values()]),
|
|
195
195
|
];
|
|
196
|
-
|
|
196
|
+
handleUpdate(normalizePath, generatedFiles, server, serverOptions, context.logger);
|
|
197
197
|
if (requiresServerRestart) {
|
|
198
198
|
// Restart the server to force SSR dep re-optimization when a dependency has been added.
|
|
199
199
|
// This is a workaround for: https://github.com/vitejs/vite/issues/14896
|
|
@@ -491,9 +491,6 @@ function getDepOptimizationConfig({ disabled, exclude, include, target, zoneless
|
|
|
491
491
|
},
|
|
492
492
|
},
|
|
493
493
|
];
|
|
494
|
-
if (ssr) {
|
|
495
|
-
plugins.unshift((0, internal_1.createRxjsEsmResolutionPlugin)());
|
|
496
|
-
}
|
|
497
494
|
return {
|
|
498
495
|
// Exclude any explicitly defined dependencies (currently build defined externals)
|
|
499
496
|
exclude,
|
package/src/index.d.ts
CHANGED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
export { buildApplication, type ApplicationBuilderOptions, type ApplicationBuilderOutput, } from './builders/application';
|
|
9
9
|
export { type BuildOutputFile, BuildOutputFileType } from './tools/esbuild/bundler-context';
|
|
10
10
|
export type { BuildOutputAsset } from './tools/esbuild/bundler-execution-result';
|
|
11
|
-
export { executeDevServerBuilder, DevServerBuilderOptions, DevServerBuilderOutput, } from './builders/dev-server';
|
|
12
|
-
export { execute as executeExtractI18nBuilder, ExtractI18nBuilderOptions, } from './builders/extract-i18n';
|
|
11
|
+
export { executeDevServerBuilder, type DevServerBuilderOptions, type DevServerBuilderOutput, } from './builders/dev-server';
|
|
12
|
+
export { execute as executeExtractI18nBuilder, type ExtractI18nBuilderOptions, } from './builders/extract-i18n';
|
package/src/private.d.ts
CHANGED
|
@@ -12,20 +12,21 @@
|
|
|
12
12
|
* their existence may change in any future version.
|
|
13
13
|
*/
|
|
14
14
|
export { buildApplicationInternal } from './builders/application';
|
|
15
|
-
export { ApplicationBuilderInternalOptions } from './builders/application/options';
|
|
15
|
+
export type { ApplicationBuilderInternalOptions } from './builders/application/options';
|
|
16
16
|
export { serveWithVite } from './builders/dev-server/vite-server';
|
|
17
17
|
export * from './tools/babel/plugins';
|
|
18
|
-
export { ExternalResultMetadata } from './tools/esbuild/bundler-execution-result';
|
|
18
|
+
export type { ExternalResultMetadata } from './tools/esbuild/bundler-execution-result';
|
|
19
19
|
export { emitFilesToDisk } from './tools/esbuild/utils';
|
|
20
20
|
export { transformSupportedBrowsersToTargets } from './tools/esbuild/utils';
|
|
21
21
|
export { SassWorkerImplementation } from './tools/sass/sass-service';
|
|
22
22
|
export { SourceFileCache } from './tools/esbuild/angular/source-file-cache';
|
|
23
|
-
export { createJitResourceTransformer } from './tools/
|
|
23
|
+
export { createJitResourceTransformer } from './tools/angular/transformers/jit-resource-transformer';
|
|
24
24
|
export { JavaScriptTransformer } from './tools/esbuild/javascript-transformer';
|
|
25
|
+
export { createCompilerPlugin } from './tools/esbuild/angular/compiler-plugin';
|
|
25
26
|
export * from './utils/bundle-calculator';
|
|
26
27
|
export { checkPort } from './utils/check-port';
|
|
27
28
|
export { deleteOutputDir } from './utils/delete-output-dir';
|
|
28
|
-
export { I18nOptions, createI18nOptions, loadTranslations } from './utils/i18n-options';
|
|
29
|
+
export { type I18nOptions, createI18nOptions, loadTranslations } from './utils/i18n-options';
|
|
29
30
|
export { IndexHtmlGenerator, type IndexHtmlGeneratorOptions, type IndexHtmlGeneratorProcessOptions, type IndexHtmlTransform, } from './utils/index-file/index-html-generator';
|
|
30
31
|
export type { FileInfo } from './utils/index-file/augment-index-html';
|
|
31
32
|
export { type InlineCriticalCssProcessOptions, InlineCriticalCssProcessor, type InlineCriticalCssProcessorOptions, } from './utils/index-file/inline-critical-css';
|
|
@@ -33,6 +34,6 @@ export { loadProxyConfiguration } from './utils/load-proxy-config';
|
|
|
33
34
|
export { type TranslationLoader, createTranslationLoader } from './utils/load-translations';
|
|
34
35
|
export { purgeStaleBuildCache } from './utils/purge-cache';
|
|
35
36
|
export { augmentAppWithServiceWorker } from './utils/service-worker';
|
|
36
|
-
export { BundleStats, generateBuildStatsTable } from './utils/stats-table';
|
|
37
|
+
export { type BundleStats, generateBuildStatsTable } from './utils/stats-table';
|
|
37
38
|
export { getSupportedBrowsers } from './utils/supported-browsers';
|
|
38
39
|
export { assertCompatibleAngularVersion } from './utils/version';
|
package/src/private.js
CHANGED
|
@@ -21,7 +21,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
21
21
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
22
22
|
};
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.assertCompatibleAngularVersion = exports.getSupportedBrowsers = exports.generateBuildStatsTable = exports.augmentAppWithServiceWorker = exports.purgeStaleBuildCache = exports.createTranslationLoader = exports.loadProxyConfiguration = exports.InlineCriticalCssProcessor = exports.IndexHtmlGenerator = exports.loadTranslations = exports.createI18nOptions = exports.deleteOutputDir = exports.checkPort = exports.JavaScriptTransformer = exports.createJitResourceTransformer = exports.SourceFileCache = exports.SassWorkerImplementation = exports.transformSupportedBrowsersToTargets = exports.emitFilesToDisk = exports.serveWithVite = exports.buildApplicationInternal = void 0;
|
|
24
|
+
exports.assertCompatibleAngularVersion = exports.getSupportedBrowsers = exports.generateBuildStatsTable = exports.augmentAppWithServiceWorker = exports.purgeStaleBuildCache = exports.createTranslationLoader = exports.loadProxyConfiguration = exports.InlineCriticalCssProcessor = exports.IndexHtmlGenerator = exports.loadTranslations = exports.createI18nOptions = exports.deleteOutputDir = exports.checkPort = exports.createCompilerPlugin = exports.JavaScriptTransformer = exports.createJitResourceTransformer = exports.SourceFileCache = exports.SassWorkerImplementation = exports.transformSupportedBrowsersToTargets = exports.emitFilesToDisk = exports.serveWithVite = exports.buildApplicationInternal = void 0;
|
|
25
25
|
/**
|
|
26
26
|
* @fileoverview
|
|
27
27
|
* Private exports intended only for use with the @angular-devkit/build-angular package.
|
|
@@ -43,10 +43,12 @@ var sass_service_1 = require("./tools/sass/sass-service");
|
|
|
43
43
|
Object.defineProperty(exports, "SassWorkerImplementation", { enumerable: true, get: function () { return sass_service_1.SassWorkerImplementation; } });
|
|
44
44
|
var source_file_cache_1 = require("./tools/esbuild/angular/source-file-cache");
|
|
45
45
|
Object.defineProperty(exports, "SourceFileCache", { enumerable: true, get: function () { return source_file_cache_1.SourceFileCache; } });
|
|
46
|
-
var jit_resource_transformer_1 = require("./tools/
|
|
46
|
+
var jit_resource_transformer_1 = require("./tools/angular/transformers/jit-resource-transformer");
|
|
47
47
|
Object.defineProperty(exports, "createJitResourceTransformer", { enumerable: true, get: function () { return jit_resource_transformer_1.createJitResourceTransformer; } });
|
|
48
48
|
var javascript_transformer_1 = require("./tools/esbuild/javascript-transformer");
|
|
49
49
|
Object.defineProperty(exports, "JavaScriptTransformer", { enumerable: true, get: function () { return javascript_transformer_1.JavaScriptTransformer; } });
|
|
50
|
+
var compiler_plugin_1 = require("./tools/esbuild/angular/compiler-plugin");
|
|
51
|
+
Object.defineProperty(exports, "createCompilerPlugin", { enumerable: true, get: function () { return compiler_plugin_1.createCompilerPlugin; } });
|
|
50
52
|
// Utilities
|
|
51
53
|
__exportStar(require("./utils/bundle-calculator"), exports);
|
|
52
54
|
var check_port_1 = require("./utils/check-port");
|
|
@@ -31,9 +31,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
31
31
|
};
|
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
33
|
exports.AngularCompilation = exports.DiagnosticModes = void 0;
|
|
34
|
-
const load_esm_1 = require("
|
|
35
|
-
const
|
|
36
|
-
const
|
|
34
|
+
const load_esm_1 = require("../../../utils/load-esm");
|
|
35
|
+
const diagnostics_1 = require("../../esbuild/angular/diagnostics");
|
|
36
|
+
const profiling_1 = require("../../esbuild/profiling");
|
|
37
37
|
var DiagnosticModes;
|
|
38
38
|
(function (DiagnosticModes) {
|
|
39
39
|
DiagnosticModes[DiagnosticModes["None"] = 0] = "None";
|
|
@@ -13,11 +13,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
exports.AotCompilation = void 0;
|
|
14
14
|
const node_assert_1 = __importDefault(require("node:assert"));
|
|
15
15
|
const typescript_1 = __importDefault(require("typescript"));
|
|
16
|
-
const profiling_1 = require("../../profiling");
|
|
16
|
+
const profiling_1 = require("../../esbuild/profiling");
|
|
17
17
|
const angular_host_1 = require("../angular-host");
|
|
18
|
-
const
|
|
18
|
+
const jit_bootstrap_transformer_1 = require("../transformers/jit-bootstrap-transformer");
|
|
19
|
+
const web_worker_transformer_1 = require("../transformers/web-worker-transformer");
|
|
19
20
|
const angular_compilation_1 = require("./angular-compilation");
|
|
20
|
-
const jit_bootstrap_transformer_1 = require("./jit-bootstrap-transformer");
|
|
21
21
|
class AngularCompilationState {
|
|
22
22
|
angularProgram;
|
|
23
23
|
compilerHost;
|
|
@@ -31,7 +31,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
31
31
|
};
|
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
33
|
exports.createAngularCompilation = createAngularCompilation;
|
|
34
|
-
const environment_options_1 = require("
|
|
34
|
+
const environment_options_1 = require("../../../utils/environment-options");
|
|
35
35
|
/**
|
|
36
36
|
* Creates an Angular compilation object that can be used to perform Angular application
|
|
37
37
|
* compilation either for AOT or JIT mode. By default a parallel compilation is created
|
|
@@ -13,10 +13,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
exports.JitCompilation = void 0;
|
|
14
14
|
const node_assert_1 = __importDefault(require("node:assert"));
|
|
15
15
|
const typescript_1 = __importDefault(require("typescript"));
|
|
16
|
-
const profiling_1 = require("../../profiling");
|
|
16
|
+
const profiling_1 = require("../../esbuild/profiling");
|
|
17
17
|
const angular_host_1 = require("../angular-host");
|
|
18
|
-
const jit_resource_transformer_1 = require("../jit-resource-transformer");
|
|
19
|
-
const web_worker_transformer_1 = require("../web-worker-transformer");
|
|
18
|
+
const jit_resource_transformer_1 = require("../transformers/jit-resource-transformer");
|
|
19
|
+
const web_worker_transformer_1 = require("../transformers/web-worker-transformer");
|
|
20
20
|
const angular_compilation_1 = require("./angular-compilation");
|
|
21
21
|
class JitCompilationState {
|
|
22
22
|
compilerHost;
|
|
@@ -17,7 +17,7 @@ exports.update = update;
|
|
|
17
17
|
const node_assert_1 = __importDefault(require("node:assert"));
|
|
18
18
|
const node_crypto_1 = require("node:crypto");
|
|
19
19
|
const node_worker_threads_1 = require("node:worker_threads");
|
|
20
|
-
const source_file_cache_1 = require("
|
|
20
|
+
const source_file_cache_1 = require("../../esbuild/angular/source-file-cache");
|
|
21
21
|
const aot_compilation_1 = require("./aot-compilation");
|
|
22
22
|
const jit_compilation_1 = require("./jit-compilation");
|
|
23
23
|
let compilation;
|
|
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.createJitResourceTransformer = createJitResourceTransformer;
|
|
14
14
|
const typescript_1 = __importDefault(require("typescript"));
|
|
15
|
-
const uri_1 = require("
|
|
15
|
+
const uri_1 = require("../uri");
|
|
16
16
|
/**
|
|
17
17
|
* Creates a TypeScript Transformer to transform Angular Component resource references into
|
|
18
18
|
* static import statements. This transformer is used in Angular's JIT compilation mode to
|
|
@@ -37,10 +37,10 @@ exports.createCompilerPlugin = createCompilerPlugin;
|
|
|
37
37
|
const node_assert_1 = __importDefault(require("node:assert"));
|
|
38
38
|
const path = __importStar(require("node:path"));
|
|
39
39
|
const environment_options_1 = require("../../../utils/environment-options");
|
|
40
|
+
const compilation_1 = require("../../angular/compilation");
|
|
40
41
|
const javascript_transformer_1 = require("../javascript-transformer");
|
|
41
42
|
const load_result_cache_1 = require("../load-result-cache");
|
|
42
43
|
const profiling_1 = require("../profiling");
|
|
43
|
-
const compilation_1 = require("./compilation");
|
|
44
44
|
const compilation_state_1 = require("./compilation-state");
|
|
45
45
|
const component_stylesheets_1 = require("./component-stylesheets");
|
|
46
46
|
const file_reference_tracker_1 = require("./file-reference-tracker");
|
|
@@ -57,8 +57,23 @@ function createCompilerPlugin(pluginOptions, styleOptions) {
|
|
|
57
57
|
// Webcontainers currently do not support this persistent cache store.
|
|
58
58
|
let cacheStore;
|
|
59
59
|
if (pluginOptions.sourceFileCache?.persistentCachePath && !process.versions.webcontainer) {
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
try {
|
|
61
|
+
const { LmbdCacheStore } = await Promise.resolve().then(() => __importStar(require('../lmdb-cache-store')));
|
|
62
|
+
cacheStore = new LmbdCacheStore(path.join(pluginOptions.sourceFileCache.persistentCachePath, 'angular-compiler.db'));
|
|
63
|
+
}
|
|
64
|
+
catch (e) {
|
|
65
|
+
setupWarnings.push({
|
|
66
|
+
text: 'Unable to initialize JavaScript cache storage.',
|
|
67
|
+
location: null,
|
|
68
|
+
notes: [
|
|
69
|
+
// Only show first line of lmdb load error which has platform support listed
|
|
70
|
+
{ text: e?.message.split('\n')[0] ?? `${e}` },
|
|
71
|
+
{
|
|
72
|
+
text: 'This will not affect the build output content but may result in slower builds.',
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
});
|
|
76
|
+
}
|
|
62
77
|
}
|
|
63
78
|
const javascriptTransformer = new javascript_transformer_1.JavaScriptTransformer({
|
|
64
79
|
sourcemap: !!pluginOptions.sourcemap,
|
|
@@ -10,8 +10,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.setupJitPluginCallbacks = setupJitPluginCallbacks;
|
|
11
11
|
const promises_1 = require("node:fs/promises");
|
|
12
12
|
const node_path_1 = require("node:path");
|
|
13
|
+
const uri_1 = require("../../angular/uri");
|
|
13
14
|
const load_result_cache_1 = require("../load-result-cache");
|
|
14
|
-
const uri_1 = require("./uri");
|
|
15
15
|
/**
|
|
16
16
|
* Loads/extracts the contents from a load callback Angular JIT entry.
|
|
17
17
|
* An Angular JIT entry represents either a file path for a component resource or base64
|
|
@@ -49,6 +49,7 @@ export declare class BundlerContext {
|
|
|
49
49
|
readonly watchFiles: Set<string>;
|
|
50
50
|
constructor(workspaceRoot: string, incremental: boolean, options: BuildOptions | BundlerOptionsFactory, initialFilter?: ((initial: Readonly<InitialFileRecord>) => boolean) | undefined);
|
|
51
51
|
static bundleAll(contexts: Iterable<BundlerContext>, changedFiles?: Iterable<string>): Promise<BundleContextResult>;
|
|
52
|
+
static mergeResults(results: BundleContextResult[]): BundleContextResult;
|
|
52
53
|
/**
|
|
53
54
|
* Executes the esbuild build function and normalizes the build result in the event of a
|
|
54
55
|
* build failure that results in no output being generated.
|
|
@@ -64,9 +64,12 @@ class BundlerContext {
|
|
|
64
64
|
}
|
|
65
65
|
return context.bundle();
|
|
66
66
|
}));
|
|
67
|
+
return BundlerContext.mergeResults(individualResults);
|
|
68
|
+
}
|
|
69
|
+
static mergeResults(results) {
|
|
67
70
|
// Return directly if only one result
|
|
68
|
-
if (
|
|
69
|
-
return
|
|
71
|
+
if (results.length === 1) {
|
|
72
|
+
return results[0];
|
|
70
73
|
}
|
|
71
74
|
let errors;
|
|
72
75
|
const warnings = [];
|
|
@@ -76,7 +79,7 @@ class BundlerContext {
|
|
|
76
79
|
const externalImportsServer = new Set();
|
|
77
80
|
const outputFiles = [];
|
|
78
81
|
let externalConfiguration;
|
|
79
|
-
for (const result of
|
|
82
|
+
for (const result of results) {
|
|
80
83
|
warnings.push(...result.warnings);
|
|
81
84
|
if (result.errors) {
|
|
82
85
|
errors ??= [];
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { Budget as BudgetEntry, Type as BudgetType } from '../builders/application/schema';
|
|
9
|
-
export { BudgetEntry, BudgetType };
|
|
9
|
+
export { type BudgetEntry, BudgetType };
|
|
10
10
|
export interface Threshold {
|
|
11
11
|
limit: number;
|
|
12
12
|
type: ThresholdType;
|
|
@@ -99,7 +99,7 @@ class InlineFontsProcessor {
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
|
-
initCollectorStream().catch(() => {
|
|
102
|
+
void initCollectorStream().catch(() => {
|
|
103
103
|
// We don't really care about any errors here because it just initializes
|
|
104
104
|
// the rewriting stream, as we are waiting for `finish` below.
|
|
105
105
|
});
|
|
@@ -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.0-
|
|
13
|
+
const VERSION = '18.1.0-rc.0';
|
|
14
14
|
function hasCacheMetadata(value) {
|
|
15
15
|
return (!!value &&
|
|
16
16
|
typeof value === 'object' &&
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/tools/{esbuild/angular/compilation → angular/transformers}/jit-bootstrap-transformer.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|