@angular-devkit/build-angular 12.1.3 → 12.1.4
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,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/build-angular",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.4",
|
|
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
|
-
"@angular-devkit/architect": "0.1201.
|
|
10
|
-
"@angular-devkit/build-optimizer": "0.1201.
|
|
11
|
-
"@angular-devkit/build-webpack": "0.1201.
|
|
12
|
-
"@angular-devkit/core": "12.1.
|
|
9
|
+
"@angular-devkit/architect": "0.1201.4",
|
|
10
|
+
"@angular-devkit/build-optimizer": "0.1201.4",
|
|
11
|
+
"@angular-devkit/build-webpack": "0.1201.4",
|
|
12
|
+
"@angular-devkit/core": "12.1.4",
|
|
13
13
|
"@babel/core": "7.14.6",
|
|
14
14
|
"@babel/generator": "7.14.5",
|
|
15
15
|
"@babel/helper-annotate-as-pure": "7.14.5",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@babel/template": "7.14.5",
|
|
22
22
|
"@discoveryjs/json-ext": "0.5.3",
|
|
23
23
|
"@jsdevtools/coverage-istanbul-loader": "3.0.5",
|
|
24
|
-
"@ngtools/webpack": "12.1.
|
|
24
|
+
"@ngtools/webpack": "12.1.4",
|
|
25
25
|
"ansi-colors": "4.1.1",
|
|
26
26
|
"babel-loader": "8.2.2",
|
|
27
27
|
"browserslist": "^4.9.1",
|
package/src/app-shell/index.js
CHANGED
|
@@ -130,10 +130,9 @@ async function _appShellBuilder(options, context) {
|
|
|
130
130
|
});
|
|
131
131
|
let spinner;
|
|
132
132
|
try {
|
|
133
|
-
// Using `.result` instead of `.output` causes Webpack FS cache not to be created.
|
|
134
133
|
const [browserResult, serverResult] = await Promise.all([
|
|
135
|
-
browserTargetRun.
|
|
136
|
-
serverTargetRun.
|
|
134
|
+
browserTargetRun.result,
|
|
135
|
+
serverTargetRun.result,
|
|
137
136
|
]);
|
|
138
137
|
if (browserResult.success === false || browserResult.baseOutputPath === undefined) {
|
|
139
138
|
return browserResult;
|
|
@@ -152,8 +151,7 @@ async function _appShellBuilder(options, context) {
|
|
|
152
151
|
return { success: false, error: err.message };
|
|
153
152
|
}
|
|
154
153
|
finally {
|
|
155
|
-
|
|
156
|
-
const _ = Promise.all([browserTargetRun.stop(), serverTargetRun.stop()]);
|
|
154
|
+
await Promise.all([browserTargetRun.stop(), serverTargetRun.stop()]);
|
|
157
155
|
}
|
|
158
156
|
}
|
|
159
157
|
exports.default = architect_1.createBuilder(_appShellBuilder);
|
|
@@ -170,7 +170,7 @@ function getCommonConfig(wco) {
|
|
|
170
170
|
}
|
|
171
171
|
// process asset entries
|
|
172
172
|
if (buildOptions.assets.length) {
|
|
173
|
-
const copyWebpackPluginPatterns = buildOptions.assets.map((asset) => {
|
|
173
|
+
const copyWebpackPluginPatterns = buildOptions.assets.map((asset, index) => {
|
|
174
174
|
// Resolve input paths relative to workspace root and add slash at the end.
|
|
175
175
|
// eslint-disable-next-line prefer-const
|
|
176
176
|
let { input, output, ignore = [], glob } = asset;
|
|
@@ -200,6 +200,7 @@ function getCommonConfig(wco) {
|
|
|
200
200
|
...ignore,
|
|
201
201
|
].map((i) => path.posix.join(input, i)),
|
|
202
202
|
},
|
|
203
|
+
priority: index,
|
|
203
204
|
};
|
|
204
205
|
});
|
|
205
206
|
extraPlugins.push(new copy_webpack_plugin_1.default({
|