@angular-devkit/build-angular 19.0.0-rc.2 → 19.0.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
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/build-angular",
|
|
3
|
-
"version": "19.0.0
|
|
3
|
+
"version": "19.0.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.1900.0
|
|
11
|
-
"@angular-devkit/build-webpack": "0.1900.0
|
|
12
|
-
"@angular-devkit/core": "19.0.0
|
|
13
|
-
"@angular/build": "19.0.0
|
|
10
|
+
"@angular-devkit/architect": "0.1900.0",
|
|
11
|
+
"@angular-devkit/build-webpack": "0.1900.0",
|
|
12
|
+
"@angular-devkit/core": "19.0.0",
|
|
13
|
+
"@angular/build": "19.0.0",
|
|
14
14
|
"@babel/core": "7.26.0",
|
|
15
15
|
"@babel/generator": "7.26.2",
|
|
16
16
|
"@babel/helper-annotate-as-pure": "7.25.9",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@babel/preset-env": "7.26.0",
|
|
22
22
|
"@babel/runtime": "7.26.0",
|
|
23
23
|
"@discoveryjs/json-ext": "0.6.3",
|
|
24
|
-
"@ngtools/webpack": "19.0.0
|
|
24
|
+
"@ngtools/webpack": "19.0.0",
|
|
25
25
|
"@vitejs/plugin-basic-ssl": "1.1.0",
|
|
26
26
|
"ansi-colors": "4.1.3",
|
|
27
27
|
"autoprefixer": "10.4.20",
|
|
@@ -66,17 +66,17 @@
|
|
|
66
66
|
"esbuild": "0.24.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@angular/compiler-cli": "^19.0.0
|
|
70
|
-
"@angular/localize": "^19.0.0
|
|
71
|
-
"@angular/platform-server": "^19.0.0
|
|
72
|
-
"@angular/service-worker": "^19.0.0
|
|
73
|
-
"@angular/ssr": "^19.0.0
|
|
69
|
+
"@angular/compiler-cli": "^19.0.0",
|
|
70
|
+
"@angular/localize": "^19.0.0",
|
|
71
|
+
"@angular/platform-server": "^19.0.0",
|
|
72
|
+
"@angular/service-worker": "^19.0.0",
|
|
73
|
+
"@angular/ssr": "^19.0.0",
|
|
74
74
|
"@web/test-runner": "^0.19.0",
|
|
75
75
|
"browser-sync": "^3.0.2",
|
|
76
76
|
"jest": "^29.5.0",
|
|
77
77
|
"jest-environment-jsdom": "^29.5.0",
|
|
78
78
|
"karma": "^6.3.0",
|
|
79
|
-
"ng-packagr": "^19.0.0
|
|
79
|
+
"ng-packagr": "^19.0.0",
|
|
80
80
|
"protractor": "^7.0.0",
|
|
81
81
|
"tailwindcss": "^2.0.0 || ^3.0.0",
|
|
82
82
|
"typescript": ">=5.5 <5.7"
|
|
@@ -29,6 +29,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
29
29
|
__setModuleDefault(result, mod);
|
|
30
30
|
return result;
|
|
31
31
|
};
|
|
32
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
33
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34
|
+
};
|
|
32
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
36
|
exports.execute = execute;
|
|
34
37
|
const private_1 = require("@angular/build/private");
|
|
@@ -37,6 +40,7 @@ const build_webpack_1 = require("@angular-devkit/build-webpack");
|
|
|
37
40
|
const promises_1 = require("node:fs/promises");
|
|
38
41
|
const path = __importStar(require("node:path"));
|
|
39
42
|
const rxjs_1 = require("rxjs");
|
|
43
|
+
const webpack_1 = __importDefault(require("webpack"));
|
|
40
44
|
const configs_1 = require("../../tools/webpack/configs");
|
|
41
45
|
const helpers_1 = require("../../tools/webpack/utils/helpers");
|
|
42
46
|
const stats_1 = require("../../tools/webpack/utils/stats");
|
|
@@ -146,7 +150,18 @@ async function initialize(options, context, webpackConfigurationTransform) {
|
|
|
146
150
|
// We use the platform to determine the JavaScript syntax output.
|
|
147
151
|
wco.buildOptions.supportedBrowsers ??= [];
|
|
148
152
|
wco.buildOptions.supportedBrowsers.push(...browserslist('maintained node versions'));
|
|
149
|
-
return [
|
|
153
|
+
return [
|
|
154
|
+
getPlatformServerExportsConfig(wco),
|
|
155
|
+
(0, configs_1.getCommonConfig)(wco),
|
|
156
|
+
(0, configs_1.getStylesConfig)(wco),
|
|
157
|
+
{
|
|
158
|
+
plugins: [
|
|
159
|
+
new webpack_1.default.DefinePlugin({
|
|
160
|
+
'ngServerMode': true,
|
|
161
|
+
}),
|
|
162
|
+
],
|
|
163
|
+
},
|
|
164
|
+
];
|
|
150
165
|
});
|
|
151
166
|
if (options.deleteOutputPath) {
|
|
152
167
|
await (0, utils_1.deleteOutputDir)(context.workspaceRoot, originalOutputPath);
|
|
@@ -45,6 +45,19 @@ const IGNORED_STDOUT_MESSAGES = [
|
|
|
45
45
|
'Angular is running in development mode. Call enableProdMode() to enable production mode.',
|
|
46
46
|
];
|
|
47
47
|
function execute(options, context) {
|
|
48
|
+
let browserSync;
|
|
49
|
+
try {
|
|
50
|
+
browserSync = require('browser-sync');
|
|
51
|
+
}
|
|
52
|
+
catch {
|
|
53
|
+
return (0, rxjs_1.of)({
|
|
54
|
+
success: false,
|
|
55
|
+
error:
|
|
56
|
+
// eslint-disable-next-line max-len
|
|
57
|
+
'Required dependency `browser-sync` is not installed, most likely you need to run `npm install browser-sync --save-dev` in your project.',
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
const bsInstance = browserSync.create();
|
|
48
61
|
const browserTarget = (0, architect_1.targetFromTargetString)(options.browserTarget);
|
|
49
62
|
const serverTarget = (0, architect_1.targetFromTargetString)(options.serverTarget);
|
|
50
63
|
const getBaseUrl = (bs) => `${bs.getOption('scheme')}://${bs.getOption('host')}:${bs.getOption('port')}`;
|
|
@@ -60,17 +73,6 @@ function execute(options, context) {
|
|
|
60
73
|
progress: options.progress,
|
|
61
74
|
verbose: options.verbose,
|
|
62
75
|
});
|
|
63
|
-
let browserSync;
|
|
64
|
-
try {
|
|
65
|
-
browserSync = require('browser-sync');
|
|
66
|
-
}
|
|
67
|
-
catch {
|
|
68
|
-
return (0, rxjs_1.of)({
|
|
69
|
-
success: false,
|
|
70
|
-
error: '"browser-sync" is not installed, most likely you need to run `npm install browser-sync --save-dev` in your project.',
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
const bsInstance = browserSync.create();
|
|
74
76
|
context.logger.error(core_1.tags.stripIndents `
|
|
75
77
|
****************************************************************************************
|
|
76
78
|
This is a simple server for use in testing or debugging Angular applications locally.
|
|
@@ -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 = '19.0.0
|
|
13
|
+
const VERSION = '19.0.0';
|
|
14
14
|
function hasCacheMetadata(value) {
|
|
15
15
|
return (!!value &&
|
|
16
16
|
typeof value === 'object' &&
|