@angular-devkit/build-webpack 0.2002.0-next.2 → 0.2002.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
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@angular-devkit/build-webpack",
|
3
|
-
"version": "0.2002.0-
|
3
|
+
"version": "0.2002.0-rc.0",
|
4
4
|
"description": "Webpack Builder for Architect",
|
5
5
|
"experimental": true,
|
6
6
|
"main": "src/index.js",
|
@@ -16,7 +16,7 @@
|
|
16
16
|
"./*.js": "./*.js"
|
17
17
|
},
|
18
18
|
"dependencies": {
|
19
|
-
"@angular-devkit/architect": "0.2002.0-
|
19
|
+
"@angular-devkit/architect": "0.2002.0-rc.0",
|
20
20
|
"rxjs": "7.8.2"
|
21
21
|
},
|
22
22
|
"peerDependencies": {
|
@@ -34,7 +34,7 @@
|
|
34
34
|
"type": "git",
|
35
35
|
"url": "https://github.com/angular/angular-cli.git"
|
36
36
|
},
|
37
|
-
"packageManager": "pnpm@
|
37
|
+
"packageManager": "pnpm@10.14.0",
|
38
38
|
"engines": {
|
39
39
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
40
40
|
"npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
|
@@ -15,7 +15,7 @@ export interface WebpackLoggingCallback {
|
|
15
15
|
(stats: webpack.Stats, config: webpack.Configuration): void;
|
16
16
|
}
|
17
17
|
export interface WebpackFactory {
|
18
|
-
(config: webpack.Configuration): Observable<webpack.Compiler> | webpack.Compiler;
|
18
|
+
(config: webpack.Configuration): Observable<webpack.Compiler | null> | webpack.Compiler | null;
|
19
19
|
}
|
20
20
|
export type BuildResult = BuilderOutput & {
|
21
21
|
emittedFiles?: EmittedFiles[];
|
@@ -12,6 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13
13
|
exports.runWebpack = runWebpack;
|
14
14
|
const architect_1 = require("@angular-devkit/architect");
|
15
|
+
const node_assert_1 = __importDefault(require("node:assert"));
|
15
16
|
const node_path_1 = require("node:path");
|
16
17
|
const rxjs_1 = require("rxjs");
|
17
18
|
const webpack_1 = __importDefault(require("webpack"));
|
@@ -38,6 +39,7 @@ function runWebpack(config, context, options = {}) {
|
|
38
39
|
}
|
39
40
|
};
|
40
41
|
return createWebpack({ ...config, watch: false }).pipe((0, rxjs_1.switchMap)((webpackCompiler) => new rxjs_1.Observable((obs) => {
|
42
|
+
(0, node_assert_1.default)(webpackCompiler, 'Webpack compiler factory did not return a compiler instance.');
|
41
43
|
const callback = (err, stats) => {
|
42
44
|
if (err) {
|
43
45
|
return obs.error(err);
|
@@ -12,6 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13
13
|
exports.runWebpackDevServer = runWebpackDevServer;
|
14
14
|
const architect_1 = require("@angular-devkit/architect");
|
15
|
+
const node_assert_1 = __importDefault(require("node:assert"));
|
15
16
|
const node_path_1 = require("node:path");
|
16
17
|
const rxjs_1 = require("rxjs");
|
17
18
|
const webpack_1 = __importDefault(require("webpack"));
|
@@ -45,6 +46,7 @@ function runWebpackDevServer(config, context, options = {}) {
|
|
45
46
|
}
|
46
47
|
}, shouldProvideStats = true, } = options;
|
47
48
|
return createWebpack({ ...config, watch: false }).pipe((0, rxjs_1.switchMap)((webpackCompiler) => new rxjs_1.Observable((obs) => {
|
49
|
+
(0, node_assert_1.default)(webpackCompiler, 'Webpack compiler factory did not return a compiler instance.');
|
48
50
|
const devServerConfig = options.devServerConfig || config.devServer || {};
|
49
51
|
devServerConfig.host ??= 'localhost';
|
50
52
|
let result;
|