@angular-devkit/build-angular 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 +9 -9
- package/src/builders/dev-server/index.d.ts +1 -1
- package/src/builders/dev-server/webpack-server.js +1 -0
- package/src/builders/karma/index.d.ts +1 -1
- package/src/builders/ng-packagr/index.d.ts +1 -1
- package/src/builders/protractor/index.d.ts +1 -1
- package/src/builders/server/index.d.ts +1 -1
- package/src/index.d.ts +11 -10
- package/src/tools/webpack/plugins/index.d.ts +3 -3
- package/src/tools/webpack/plugins/javascript-optimizer-worker.d.ts +2 -1
- package/src/utils/normalize-cache.js +1 -1
- package/src/utils/process-bundle.js +1 -1
- package/src/utils/run-module-as-observable-fork.js +5 -2
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/build-angular",
|
|
3
|
-
"version": "18.1.0-
|
|
3
|
+
"version": "18.1.0-rc.0",
|
|
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.1801.0-
|
|
11
|
-
"@angular-devkit/build-webpack": "0.1801.0-
|
|
12
|
-
"@angular-devkit/core": "18.1.0-
|
|
13
|
-
"@angular/build": "18.1.0-
|
|
10
|
+
"@angular-devkit/architect": "0.1801.0-rc.0",
|
|
11
|
+
"@angular-devkit/build-webpack": "0.1801.0-rc.0",
|
|
12
|
+
"@angular-devkit/core": "18.1.0-rc.0",
|
|
13
|
+
"@angular/build": "18.1.0-rc.0",
|
|
14
14
|
"@babel/core": "7.24.7",
|
|
15
15
|
"@babel/generator": "7.24.7",
|
|
16
16
|
"@babel/helper-annotate-as-pure": "7.24.7",
|
|
@@ -21,21 +21,21 @@
|
|
|
21
21
|
"@babel/preset-env": "7.24.7",
|
|
22
22
|
"@babel/runtime": "7.24.7",
|
|
23
23
|
"@discoveryjs/json-ext": "0.5.7",
|
|
24
|
-
"@ngtools/webpack": "18.1.0-
|
|
24
|
+
"@ngtools/webpack": "18.1.0-rc.0",
|
|
25
25
|
"@vitejs/plugin-basic-ssl": "1.1.0",
|
|
26
26
|
"ansi-colors": "4.1.3",
|
|
27
27
|
"autoprefixer": "10.4.19",
|
|
28
28
|
"babel-loader": "9.1.3",
|
|
29
29
|
"browserslist": "^4.21.5",
|
|
30
30
|
"copy-webpack-plugin": "12.0.2",
|
|
31
|
-
"critters": "0.0.
|
|
31
|
+
"critters": "0.0.24",
|
|
32
32
|
"css-loader": "7.1.2",
|
|
33
33
|
"esbuild-wasm": "0.21.5",
|
|
34
34
|
"fast-glob": "3.3.2",
|
|
35
35
|
"http-proxy-middleware": "3.0.0",
|
|
36
36
|
"https-proxy-agent": "7.0.4",
|
|
37
37
|
"istanbul-lib-instrument": "6.0.2",
|
|
38
|
-
"jsonc-parser": "3.
|
|
38
|
+
"jsonc-parser": "3.3.1",
|
|
39
39
|
"karma-source-map-support": "1.4.0",
|
|
40
40
|
"less": "4.2.0",
|
|
41
41
|
"less-loader": "12.2.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"ora": "5.4.1",
|
|
49
49
|
"parse5-html-rewriting-stream": "7.0.0",
|
|
50
50
|
"picomatch": "4.0.2",
|
|
51
|
-
"piscina": "4.6.
|
|
51
|
+
"piscina": "4.6.1",
|
|
52
52
|
"postcss": "8.4.38",
|
|
53
53
|
"postcss-loader": "8.1.1",
|
|
54
54
|
"resolve-url-loader": "5.0.0",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { DevServerBuilderOutput } from '@angular/build';
|
|
9
9
|
import { execute } from './builder';
|
|
10
10
|
import { Schema as DevServerBuilderOptions } from './schema';
|
|
11
|
-
export { DevServerBuilderOptions, DevServerBuilderOutput, execute as executeDevServerBuilder };
|
|
11
|
+
export { type DevServerBuilderOptions, type DevServerBuilderOutput, execute as executeDevServerBuilder, };
|
|
12
12
|
declare const _default: import("../../../../architect/src/internal").Builder<DevServerBuilderOptions & import("../../../../core/src").JsonObject>;
|
|
13
13
|
export default _default;
|
|
14
14
|
export { execute as executeDevServer };
|
|
@@ -75,6 +75,7 @@ function serveWebpackBrowser(options, builderName, context, transforms = {}) {
|
|
|
75
75
|
rawBrowserOptions.outputHashing = schema_1.OutputHashing.None;
|
|
76
76
|
logger.warn(`Warning: 'outputHashing' option is disabled when using the dev-server.`);
|
|
77
77
|
}
|
|
78
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
78
79
|
const browserOptions = (await context.validateOptions({
|
|
79
80
|
...rawBrowserOptions,
|
|
80
81
|
watch: options.watch,
|
|
@@ -22,6 +22,6 @@ export declare function execute(options: KarmaBuilderOptions, context: BuilderCo
|
|
|
22
22
|
webpackConfiguration?: ExecutionTransformer<Configuration>;
|
|
23
23
|
karmaOptions?: (options: KarmaConfigOptions) => KarmaConfigOptions;
|
|
24
24
|
}): Observable<BuilderOutput>;
|
|
25
|
-
export { KarmaBuilderOptions };
|
|
25
|
+
export type { KarmaBuilderOptions };
|
|
26
26
|
declare const _default: import("../../../../architect/src/internal").Builder<Record<string, string> & KarmaBuilderOptions & import("@angular-devkit/core").JsonObject>;
|
|
27
27
|
export default _default;
|
|
@@ -12,6 +12,6 @@ import { Schema as NgPackagrBuilderOptions } from './schema';
|
|
|
12
12
|
* @experimental Direct usage of this function is considered experimental.
|
|
13
13
|
*/
|
|
14
14
|
export declare function execute(options: NgPackagrBuilderOptions, context: BuilderContext): Observable<BuilderOutput>;
|
|
15
|
-
export { NgPackagrBuilderOptions };
|
|
15
|
+
export type { NgPackagrBuilderOptions };
|
|
16
16
|
declare const _default: import("../../../../architect/src/internal").Builder<Record<string, string> & NgPackagrBuilderOptions & import("../../../../core/src").JsonObject>;
|
|
17
17
|
export default _default;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { BuilderContext, BuilderOutput } from '@angular-devkit/architect';
|
|
9
9
|
import { json } from '@angular-devkit/core';
|
|
10
10
|
import { Schema as ProtractorBuilderOptions } from './schema';
|
|
11
|
-
export { ProtractorBuilderOptions };
|
|
11
|
+
export type { ProtractorBuilderOptions };
|
|
12
12
|
/**
|
|
13
13
|
* @experimental Direct usage of this function is considered experimental.
|
|
14
14
|
*/
|
package/src/index.d.ts
CHANGED
|
@@ -6,13 +6,14 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
export * from './transforms';
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export { execute as
|
|
15
|
-
export { execute as
|
|
16
|
-
export { execute as
|
|
17
|
-
export { execute as
|
|
18
|
-
export { execute as
|
|
9
|
+
export { CrossOrigin, OutputHashing, Type } from './builders/browser/schema';
|
|
10
|
+
export type { AssetPattern, AssetPatternClass as AssetPatternObject, Budget, FileReplacement, OptimizationClass as OptimizationObject, OptimizationUnion, Schema as BrowserBuilderOptions, SourceMapClass as SourceMapObject, SourceMapUnion, StylePreprocessorOptions, } from './builders/browser/schema';
|
|
11
|
+
export { buildWebpackBrowser as executeBrowserBuilder, type BrowserBuilderOutput, } from './builders/browser';
|
|
12
|
+
export { buildApplication, type ApplicationBuilderOptions } from '@angular/build';
|
|
13
|
+
export { executeDevServerBuilder, type DevServerBuilderOptions, type DevServerBuilderOutput, } from './builders/dev-server';
|
|
14
|
+
export { execute as executeExtractI18nBuilder, type ExtractI18nBuilderOptions, } from './builders/extract-i18n';
|
|
15
|
+
export { execute as executeKarmaBuilder, type KarmaBuilderOptions, type KarmaConfigOptions, } from './builders/karma';
|
|
16
|
+
export { execute as executeProtractorBuilder, type ProtractorBuilderOptions, } from './builders/protractor';
|
|
17
|
+
export { execute as executeServerBuilder, type ServerBuilderOptions, type ServerBuilderOutput, } from './builders/server';
|
|
18
|
+
export { execute as executeSSRDevServerBuilder, type SSRDevServerBuilderOptions, type SSRDevServerBuilderOutput, } from './builders/ssr-dev-server';
|
|
19
|
+
export { execute as executeNgPackagrBuilder, type NgPackagrBuilderOptions, } from './builders/ng-packagr';
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
export { AnyComponentStyleBudgetChecker } from './any-component-style-budget-checker';
|
|
9
|
-
export { ScriptsWebpackPlugin, ScriptsWebpackPluginOptions } from './scripts-webpack-plugin';
|
|
9
|
+
export { ScriptsWebpackPlugin, type ScriptsWebpackPluginOptions } from './scripts-webpack-plugin';
|
|
10
10
|
export { SuppressExtractedTextChunksWebpackPlugin } from './suppress-entry-chunks-webpack-plugin';
|
|
11
|
-
export { RemoveHashPlugin, RemoveHashPluginOptions } from './remove-hash-plugin';
|
|
11
|
+
export { RemoveHashPlugin, type RemoveHashPluginOptions } from './remove-hash-plugin';
|
|
12
12
|
export { DedupeModuleResolvePlugin } from './dedupe-module-resolve-plugin';
|
|
13
13
|
export { CommonJsUsageWarnPlugin } from './common-js-usage-warn-plugin';
|
|
14
14
|
export { JsonStatsPlugin } from './json-stats-plugin';
|
|
15
15
|
export { JavaScriptOptimizerPlugin } from './javascript-optimizer-plugin';
|
|
16
|
-
export { default as PostcssCliResources, PostcssCliResourcesOptions, } from './postcss-cli-resources';
|
|
16
|
+
export { default as PostcssCliResources, type PostcssCliResourcesOptions, } from './postcss-cli-resources';
|
|
@@ -5,6 +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 { SourceMapInput } from '@ampproject/remapping';
|
|
8
9
|
/**
|
|
9
10
|
* The options to use when optimizing.
|
|
10
11
|
*/
|
|
@@ -70,7 +71,7 @@ interface OptimizeRequest {
|
|
|
70
71
|
* The source map of the JavaScript asset, if available.
|
|
71
72
|
* This map is merged with all intermediate source maps during optimization.
|
|
72
73
|
*/
|
|
73
|
-
map:
|
|
74
|
+
map: SourceMapInput;
|
|
74
75
|
};
|
|
75
76
|
}
|
|
76
77
|
/**
|
|
@@ -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' &&
|
|
@@ -145,7 +145,7 @@ async function inlineLocales(options) {
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
const { diagnostics: localeDiagnostics, plugins } = await createI18nPlugins(locale, translations, isSourceLocale ? 'ignore' : options.missingTranslation || 'warning', true, localeDataContent);
|
|
148
|
-
const transformResult =
|
|
148
|
+
const transformResult = (0, core_1.transformFromAstSync)(ast, options.code, {
|
|
149
149
|
filename: options.filename,
|
|
150
150
|
// using false ensures that babel will NOT search and process sourcemap comments (large memory usage)
|
|
151
151
|
// The types do not include the false option even though it is valid
|
|
@@ -6,12 +6,15 @@
|
|
|
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
|
+
};
|
|
9
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
13
|
exports.runModuleAsObservableFork = runModuleAsObservableFork;
|
|
11
14
|
const child_process_1 = require("child_process");
|
|
12
15
|
const path_1 = require("path");
|
|
13
16
|
const rxjs_1 = require("rxjs");
|
|
14
|
-
const
|
|
17
|
+
const tree_kill_1 = __importDefault(require("tree-kill"));
|
|
15
18
|
function runModuleAsObservableFork(cwd, modulePath, exportName,
|
|
16
19
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17
20
|
args) {
|
|
@@ -39,7 +42,7 @@ args) {
|
|
|
39
42
|
// Cleanup.
|
|
40
43
|
const killForkedProcess = () => {
|
|
41
44
|
if (forkedProcess && forkedProcess.pid) {
|
|
42
|
-
|
|
45
|
+
(0, tree_kill_1.default)(forkedProcess.pid, 'SIGTERM');
|
|
43
46
|
}
|
|
44
47
|
};
|
|
45
48
|
// Handle child process exit.
|