@angular-devkit/build-angular 0.803.25 → 0.803.26
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 +10 -10
- package/src/utils/process-bundle.js +11 -1
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/build-angular",
|
|
3
|
-
"version": "0.803.
|
|
3
|
+
"version": "0.803.26",
|
|
4
4
|
"description": "Angular Webpack Build Facade",
|
|
5
5
|
"experimental": true,
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"typings": "src/index.d.ts",
|
|
8
8
|
"builders": "builders.json",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@angular-devkit/architect": "0.803.
|
|
11
|
-
"@angular-devkit/build-optimizer": "0.803.
|
|
12
|
-
"@angular-devkit/build-webpack": "0.803.
|
|
13
|
-
"@angular-devkit/core": "8.3.
|
|
14
|
-
"@babel/core": "7.8.
|
|
15
|
-
"@babel/preset-env": "7.8.
|
|
16
|
-
"@ngtools/webpack": "8.3.
|
|
10
|
+
"@angular-devkit/architect": "0.803.26",
|
|
11
|
+
"@angular-devkit/build-optimizer": "0.803.26",
|
|
12
|
+
"@angular-devkit/build-webpack": "0.803.26",
|
|
13
|
+
"@angular-devkit/core": "8.3.26",
|
|
14
|
+
"@babel/core": "7.8.7",
|
|
15
|
+
"@babel/preset-env": "7.8.7",
|
|
16
|
+
"@ngtools/webpack": "8.3.26",
|
|
17
17
|
"ajv": "6.10.2",
|
|
18
18
|
"autoprefixer": "9.6.1",
|
|
19
|
-
"browserslist": "4.
|
|
19
|
+
"browserslist": "4.10.0",
|
|
20
20
|
"cacache": "12.0.2",
|
|
21
|
-
"caniuse-lite": "1.0.
|
|
21
|
+
"caniuse-lite": "1.0.30001035",
|
|
22
22
|
"circular-dependency-plugin": "5.2.0",
|
|
23
23
|
"clean-css": "4.2.1",
|
|
24
24
|
"coverage-istanbul-loader": "2.0.3",
|
|
@@ -53,6 +53,16 @@ async function process(options) {
|
|
|
53
53
|
let downlevelCode;
|
|
54
54
|
let downlevelMap;
|
|
55
55
|
if (downlevel) {
|
|
56
|
+
const { supportedBrowsers: targets = [] } = options;
|
|
57
|
+
// todo: revisit this in version 10, when we update our defaults browserslist
|
|
58
|
+
// Without this workaround bundles will not be downlevelled because Babel doesn't know handle to 'op_mini all'
|
|
59
|
+
// See: https://github.com/babel/babel/issues/11155
|
|
60
|
+
if (Array.isArray(targets) && targets.includes('op_mini all')) {
|
|
61
|
+
targets.push('ie_mob 11');
|
|
62
|
+
}
|
|
63
|
+
else if ('op_mini' in targets) {
|
|
64
|
+
targets['ie_mob'] = '11';
|
|
65
|
+
}
|
|
56
66
|
// Downlevel the bundle
|
|
57
67
|
const transformResult = await core_1.transformAsync(sourceCode, {
|
|
58
68
|
filename: options.filename,
|
|
@@ -64,7 +74,7 @@ async function process(options) {
|
|
|
64
74
|
require.resolve('@babel/preset-env'),
|
|
65
75
|
{
|
|
66
76
|
// browserslist-compatible query or object of minimum environment versions to support
|
|
67
|
-
targets
|
|
77
|
+
targets,
|
|
68
78
|
// modules aren't needed since the bundles use webpack's custom module loading
|
|
69
79
|
modules: false,
|
|
70
80
|
// 'transform-typeof-symbol' generates slower code
|