@angular-devkit/build-webpack 0.1801.0-next.0 → 0.1801.0-next.2
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 +12 -3
- package/src/builders/webpack/index.d.ts +1 -1
- package/src/builders/webpack/index.js +2 -3
- package/src/builders/webpack-dev-server/index.d.ts +1 -1
- package/src/builders/webpack-dev-server/index.js +2 -3
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/utils.d.ts +1 -1
- package/src/utils.js +3 -4
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@angular-devkit/build-webpack",
|
3
|
-
"version": "0.1801.0-next.
|
3
|
+
"version": "0.1801.0-next.2",
|
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.1801.0-next.
|
19
|
+
"@angular-devkit/architect": "0.1801.0-next.2",
|
20
20
|
"rxjs": "7.8.1"
|
21
21
|
},
|
22
22
|
"peerDependencies": {
|
@@ -30,6 +30,7 @@
|
|
30
30
|
"devkit",
|
31
31
|
"sdk"
|
32
32
|
],
|
33
|
+
"packageManager": "yarn@4.2.2",
|
33
34
|
"repository": {
|
34
35
|
"type": "git",
|
35
36
|
"url": "https://github.com/angular/angular-cli.git"
|
@@ -44,5 +45,13 @@
|
|
44
45
|
"bugs": {
|
45
46
|
"url": "https://github.com/angular/angular-cli/issues"
|
46
47
|
},
|
47
|
-
"homepage": "https://github.com/angular/angular-cli"
|
48
|
+
"homepage": "https://github.com/angular/angular-cli",
|
49
|
+
"dependenciesMeta": {
|
50
|
+
"esbuild": {
|
51
|
+
"built": true
|
52
|
+
},
|
53
|
+
"puppeteer": {
|
54
|
+
"built": true
|
55
|
+
}
|
56
|
+
}
|
48
57
|
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
4
4
|
*
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
6
|
-
* found in the LICENSE file at https://angular.
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
7
7
|
*/
|
8
8
|
import { BuilderContext, BuilderOutput } from '@angular-devkit/architect';
|
9
9
|
import { Observable } from 'rxjs';
|
@@ -4,13 +4,13 @@
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
5
5
|
*
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
7
|
-
* found in the LICENSE file at https://angular.
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
8
8
|
*/
|
9
9
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
10
10
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
11
11
|
};
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13
|
-
exports.runWebpack =
|
13
|
+
exports.runWebpack = runWebpack;
|
14
14
|
const architect_1 = require("@angular-devkit/architect");
|
15
15
|
const path_1 = require("path");
|
16
16
|
const rxjs_1 = require("rxjs");
|
@@ -86,7 +86,6 @@ function runWebpack(config, context, options = {}) {
|
|
86
86
|
}
|
87
87
|
})));
|
88
88
|
}
|
89
|
-
exports.runWebpack = runWebpack;
|
90
89
|
exports.default = (0, architect_1.createBuilder)((options, context) => {
|
91
90
|
const configPath = (0, path_1.resolve)(context.workspaceRoot, options.webpackConfig);
|
92
91
|
return (0, rxjs_1.from)((0, utils_1.getWebpackConfig)(configPath)).pipe((0, rxjs_1.switchMap)((config) => runWebpack(config, context)));
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
4
4
|
*
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
6
|
-
* found in the LICENSE file at https://angular.
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
7
7
|
*/
|
8
8
|
import { BuilderContext } from '@angular-devkit/architect';
|
9
9
|
import { Observable } from 'rxjs';
|
@@ -4,13 +4,13 @@
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
5
5
|
*
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
7
|
-
* found in the LICENSE file at https://angular.
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
8
8
|
*/
|
9
9
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
10
10
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
11
11
|
};
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13
|
-
exports.runWebpackDevServer =
|
13
|
+
exports.runWebpackDevServer = runWebpackDevServer;
|
14
14
|
const architect_1 = require("@angular-devkit/architect");
|
15
15
|
const path_1 = require("path");
|
16
16
|
const rxjs_1 = require("rxjs");
|
@@ -85,7 +85,6 @@ function runWebpackDevServer(config, context, options = {}) {
|
|
85
85
|
};
|
86
86
|
})));
|
87
87
|
}
|
88
|
-
exports.runWebpackDevServer = runWebpackDevServer;
|
89
88
|
exports.default = (0, architect_1.createBuilder)((options, context) => {
|
90
89
|
const configPath = (0, path_1.resolve)(context.workspaceRoot, options.webpackConfig);
|
91
90
|
return (0, rxjs_1.from)((0, utils_1.getWebpackConfig)(configPath)).pipe((0, rxjs_1.switchMap)((config) => runWebpackDevServer(config, context)));
|
package/src/index.d.ts
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
4
4
|
*
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
6
|
-
* found in the LICENSE file at https://angular.
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
7
7
|
*/
|
8
8
|
export * from './builders/webpack';
|
9
9
|
export * from './builders/webpack-dev-server';
|
package/src/index.js
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
5
5
|
*
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
7
|
-
* found in the LICENSE file at https://angular.
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
8
8
|
*/
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
10
10
|
if (k2 === undefined) k2 = k;
|
package/src/utils.d.ts
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
4
4
|
*
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
6
|
-
* found in the LICENSE file at https://angular.
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
7
7
|
*/
|
8
8
|
import { Compilation, Configuration } from 'webpack';
|
9
9
|
export interface EmittedFiles {
|
package/src/utils.js
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
5
5
|
*
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
7
|
-
* found in the LICENSE file at https://angular.
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
8
8
|
*/
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
10
10
|
if (k2 === undefined) k2 = k;
|
@@ -30,7 +30,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
30
|
return result;
|
31
31
|
};
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
33
|
-
exports.
|
33
|
+
exports.getEmittedFiles = getEmittedFiles;
|
34
|
+
exports.getWebpackConfig = getWebpackConfig;
|
34
35
|
const fs_1 = require("fs");
|
35
36
|
const path = __importStar(require("path"));
|
36
37
|
const url_1 = require("url");
|
@@ -63,7 +64,6 @@ function getEmittedFiles(compilation) {
|
|
63
64
|
}
|
64
65
|
return files;
|
65
66
|
}
|
66
|
-
exports.getEmittedFiles = getEmittedFiles;
|
67
67
|
/**
|
68
68
|
* This uses a dynamic import to load a module which may be ESM.
|
69
69
|
* CommonJS code can load ESM code via a dynamic import. Unfortunately, TypeScript
|
@@ -109,4 +109,3 @@ async function getWebpackConfig(configPath) {
|
|
109
109
|
}
|
110
110
|
}
|
111
111
|
}
|
112
|
-
exports.getWebpackConfig = getWebpackConfig;
|