@angular-devkit/build-angular 12.2.12 → 12.2.16
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": "12.2.
|
|
3
|
+
"version": "12.2.16",
|
|
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": "1.0.1",
|
|
10
|
-
"@angular-devkit/architect": "0.1202.
|
|
11
|
-
"@angular-devkit/build-optimizer": "0.1202.
|
|
12
|
-
"@angular-devkit/build-webpack": "0.1202.
|
|
13
|
-
"@angular-devkit/core": "12.2.
|
|
10
|
+
"@angular-devkit/architect": "0.1202.16",
|
|
11
|
+
"@angular-devkit/build-optimizer": "0.1202.16",
|
|
12
|
+
"@angular-devkit/build-webpack": "0.1202.16",
|
|
13
|
+
"@angular-devkit/core": "12.2.16",
|
|
14
14
|
"@babel/core": "7.14.8",
|
|
15
15
|
"@babel/generator": "7.14.8",
|
|
16
16
|
"@babel/helper-annotate-as-pure": "7.14.5",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@babel/template": "7.14.5",
|
|
23
23
|
"@discoveryjs/json-ext": "0.5.3",
|
|
24
24
|
"@jsdevtools/coverage-istanbul-loader": "3.0.5",
|
|
25
|
-
"@ngtools/webpack": "12.2.
|
|
25
|
+
"@ngtools/webpack": "12.2.16",
|
|
26
26
|
"ansi-colors": "4.1.1",
|
|
27
27
|
"babel-loader": "8.2.2",
|
|
28
28
|
"browserslist": "^4.9.1",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"tslib": "2.3.0",
|
|
73
73
|
"webpack": "5.50.0",
|
|
74
74
|
"webpack-dev-middleware": "5.0.0",
|
|
75
|
-
"webpack-dev-server": "3.11.
|
|
75
|
+
"webpack-dev-server": "3.11.3",
|
|
76
76
|
"webpack-merge": "5.8.0",
|
|
77
77
|
"webpack-subresource-integrity": "1.5.2"
|
|
78
78
|
},
|
package/src/browser/index.js
CHANGED
|
@@ -286,6 +286,9 @@ function buildWebpackBrowser(options, context, transforms = {}) {
|
|
|
286
286
|
const processActions = [];
|
|
287
287
|
let processRuntimeAction;
|
|
288
288
|
for (const action of actions) {
|
|
289
|
+
if (options.verbose) {
|
|
290
|
+
context.logger.info(`[${new Date().toISOString()}] Differential loading file queued: ${action.filename}`);
|
|
291
|
+
}
|
|
289
292
|
// If SRI is enabled always process the runtime bundle
|
|
290
293
|
// Lazy route integrity values are stored in the runtime bundle
|
|
291
294
|
if (action.integrityAlgorithm && action.runtime) {
|
|
@@ -300,6 +303,14 @@ function buildWebpackBrowser(options, context, transforms = {}) {
|
|
|
300
303
|
try {
|
|
301
304
|
spinner.start('Generating ES5 bundles for differential loading...');
|
|
302
305
|
for await (const result of differentialLoadingExecutor.processAll(processActions)) {
|
|
306
|
+
if (options.verbose) {
|
|
307
|
+
if (result.original) {
|
|
308
|
+
context.logger.info(`[${new Date().toISOString()}] Differential loading file processed: ${result.original.filename}`);
|
|
309
|
+
}
|
|
310
|
+
if (result.downlevel) {
|
|
311
|
+
context.logger.info(`[${new Date().toISOString()}] Differential loading file processed: ${result.downlevel.filename}`);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
303
314
|
processResults.push(result);
|
|
304
315
|
}
|
|
305
316
|
}
|
|
@@ -315,12 +326,18 @@ function buildWebpackBrowser(options, context, transforms = {}) {
|
|
|
315
326
|
};
|
|
316
327
|
processResults.push(await Promise.resolve().then(() => __importStar(require('../utils/process-bundle'))).then((m) => m.process(runtimeOptions)));
|
|
317
328
|
}
|
|
329
|
+
if (options.verbose) {
|
|
330
|
+
context.logger.info(`[${new Date().toISOString()}] Differential loading processing complete.`);
|
|
331
|
+
}
|
|
318
332
|
spinner.succeed('ES5 bundle generation complete.');
|
|
319
333
|
if (i18n.shouldInline) {
|
|
320
334
|
spinner.start('Generating localized bundles...');
|
|
321
335
|
const inlineActions = [];
|
|
322
336
|
for (const result of processResults) {
|
|
323
337
|
if (result.original) {
|
|
338
|
+
if (options.verbose) {
|
|
339
|
+
context.logger.info(`[${new Date().toISOString()}] i18n localize file queued: ${result.original.filename}`);
|
|
340
|
+
}
|
|
324
341
|
inlineActions.push({
|
|
325
342
|
filename: path.basename(result.original.filename),
|
|
326
343
|
// Memory mode is always enabled for i18n
|
|
@@ -334,6 +351,9 @@ function buildWebpackBrowser(options, context, transforms = {}) {
|
|
|
334
351
|
});
|
|
335
352
|
}
|
|
336
353
|
if (result.downlevel) {
|
|
354
|
+
if (options.verbose) {
|
|
355
|
+
context.logger.info(`[${new Date().toISOString()}] i18n localize file queued: ${result.downlevel.filename}`);
|
|
356
|
+
}
|
|
337
357
|
inlineActions.push({
|
|
338
358
|
filename: path.basename(result.downlevel.filename),
|
|
339
359
|
// Memory mode is always enabled for i18n
|
|
@@ -350,9 +370,11 @@ function buildWebpackBrowser(options, context, transforms = {}) {
|
|
|
350
370
|
let hasErrors = false;
|
|
351
371
|
const i18nExecutor = new action_executor_1.BundleActionExecutor({ i18n }, options.subresourceIntegrity ? 'sha384' : undefined);
|
|
352
372
|
try {
|
|
373
|
+
let localizedCount = 0;
|
|
353
374
|
for await (const result of i18nExecutor.inlineAll(inlineActions)) {
|
|
375
|
+
localizedCount++;
|
|
354
376
|
if (options.verbose) {
|
|
355
|
-
context.logger.info(`Localized "${result.file}" [${result.count} translation(s)].`);
|
|
377
|
+
context.logger.info(`[${new Date().toISOString()}] (${localizedCount}/${inlineActions.length}) Localized "${result.file}" [${result.count} translation(s)].`);
|
|
356
378
|
}
|
|
357
379
|
for (const diagnostic of result.diagnostics) {
|
|
358
380
|
spinner.stop();
|
|
@@ -444,10 +444,10 @@ function transformSupportedBrowsersToTargets(supportedBrowsers) {
|
|
|
444
444
|
// browserslist uses the name `ios_saf` for iOS Safari whereas esbuild uses `ios`
|
|
445
445
|
if (browserName === 'ios_saf') {
|
|
446
446
|
browserName = 'ios';
|
|
447
|
-
// browserslist also uses ranges for iOS Safari versions but only the lowest is required
|
|
448
|
-
// to perform minimum supported feature checks. esbuild also expects a single version.
|
|
449
|
-
[version] = version.split('-');
|
|
450
447
|
}
|
|
448
|
+
// browserslist uses ranges `15.2-15.3` versions but only the lowest is required
|
|
449
|
+
// to perform minimum supported feature checks. esbuild also expects a single version.
|
|
450
|
+
[version] = version.split('-');
|
|
451
451
|
if (browserName === 'ie') {
|
|
452
452
|
transformed.push('edge12');
|
|
453
453
|
}
|