@angular-devkit/build-angular 12.1.0-next.6 → 12.1.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,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/build-angular",
|
|
3
|
-
"version": "12.1.0
|
|
3
|
+
"version": "12.1.0",
|
|
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.0
|
|
10
|
-
"@angular-devkit/build-optimizer": "0.1201.0
|
|
11
|
-
"@angular-devkit/build-webpack": "0.1201.0
|
|
12
|
-
"@angular-devkit/core": "12.1.0
|
|
9
|
+
"@angular-devkit/architect": "0.1201.0",
|
|
10
|
+
"@angular-devkit/build-optimizer": "0.1201.0",
|
|
11
|
+
"@angular-devkit/build-webpack": "0.1201.0",
|
|
12
|
+
"@angular-devkit/core": "12.1.0",
|
|
13
13
|
"@babel/core": "7.14.6",
|
|
14
14
|
"@babel/generator": "7.14.5",
|
|
15
15
|
"@babel/helper-annotate-as-pure": "7.14.5",
|
|
16
16
|
"@babel/plugin-transform-async-to-generator": "7.14.5",
|
|
17
17
|
"@babel/plugin-transform-runtime": "7.14.5",
|
|
18
|
-
"@babel/preset-env": "7.14.
|
|
18
|
+
"@babel/preset-env": "7.14.7",
|
|
19
19
|
"@babel/runtime": "7.14.6",
|
|
20
20
|
"@babel/template": "7.14.5",
|
|
21
21
|
"@discoveryjs/json-ext": "0.5.3",
|
|
22
22
|
"@jsdevtools/coverage-istanbul-loader": "3.0.5",
|
|
23
|
-
"@ngtools/webpack": "12.1.0
|
|
23
|
+
"@ngtools/webpack": "12.1.0",
|
|
24
24
|
"ansi-colors": "4.1.1",
|
|
25
25
|
"babel-loader": "8.2.2",
|
|
26
26
|
"browserslist": "^4.9.1",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"caniuse-lite": "^1.0.30001032",
|
|
29
29
|
"circular-dependency-plugin": "5.2.2",
|
|
30
30
|
"copy-webpack-plugin": "9.0.0",
|
|
31
|
-
"core-js": "3.
|
|
31
|
+
"core-js": "3.15.1",
|
|
32
32
|
"critters": "0.0.10",
|
|
33
33
|
"css-loader": "5.2.6",
|
|
34
34
|
"css-minimizer-webpack-plugin": "3.0.1",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"jest-worker": "27.0.2",
|
|
40
40
|
"karma-source-map-support": "1.4.0",
|
|
41
41
|
"less": "4.1.1",
|
|
42
|
-
"less-loader": "
|
|
42
|
+
"less-loader": "10.0.0",
|
|
43
43
|
"license-webpack-plugin": "2.3.19",
|
|
44
44
|
"loader-utils": "2.0.0",
|
|
45
45
|
"mini-css-extract-plugin": "1.6.0",
|
|
46
46
|
"minimatch": "3.0.4",
|
|
47
|
-
"open": "8.2.
|
|
47
|
+
"open": "8.2.1",
|
|
48
48
|
"ora": "5.4.1",
|
|
49
49
|
"parse5-html-rewriting-stream": "6.0.1",
|
|
50
50
|
"postcss": "8.3.5",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"text-table": "0.2.0",
|
|
70
70
|
"tree-kill": "1.2.2",
|
|
71
71
|
"tslib": "2.3.0",
|
|
72
|
-
"webpack": "5.
|
|
72
|
+
"webpack": "5.40.0",
|
|
73
73
|
"webpack-dev-middleware": "5.0.0",
|
|
74
74
|
"webpack-dev-server": "3.11.2",
|
|
75
75
|
"webpack-merge": "5.8.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@angular/localize": "^12.0.0 || ^12.1.0-next",
|
|
81
81
|
"@angular/service-worker": "^12.0.0 || ^12.1.0-next",
|
|
82
82
|
"karma": "^6.3.0",
|
|
83
|
-
"ng-packagr": "^12.0.0",
|
|
83
|
+
"ng-packagr": "^12.0.0 || ^12.1.0-next",
|
|
84
84
|
"protractor": "^7.0.0",
|
|
85
85
|
"tailwindcss": "^2.0.0",
|
|
86
86
|
"tslint": "^6.1.0",
|
|
@@ -99,9 +99,10 @@ function default_1(api, options) {
|
|
|
99
99
|
let needRuntimeTransform = false;
|
|
100
100
|
if ((_a = options.angularLinker) === null || _a === void 0 ? void 0 : _a.shouldLink) {
|
|
101
101
|
// Babel currently is synchronous so import cannot be used
|
|
102
|
-
const { createEs2015LinkerPlugin
|
|
102
|
+
const { createEs2015LinkerPlugin } = require('@angular/compiler-cli/linker/babel');
|
|
103
103
|
plugins.push(createEs2015LinkerPlugin({
|
|
104
104
|
linkerJitMode: options.angularLinker.jitMode,
|
|
105
|
+
sourceMapping: options.angularLinker.sourcemap,
|
|
105
106
|
logger: createNgtscLogger(options.diagnosticReporter),
|
|
106
107
|
fileSystem: {
|
|
107
108
|
resolve: path.resolve,
|
|
@@ -43,6 +43,7 @@ exports.default = babel_loader_1.custom(() => {
|
|
|
43
43
|
customOptions.angularLinker = {
|
|
44
44
|
shouldLink: true,
|
|
45
45
|
jitMode: aot !== true,
|
|
46
|
+
sourcemap: false,
|
|
46
47
|
};
|
|
47
48
|
shouldProcess = true;
|
|
48
49
|
}
|
|
@@ -112,6 +113,14 @@ exports.default = babel_loader_1.custom(() => {
|
|
|
112
113
|
{ wrapDecorators: customOptions.optimize.wrapDecorators },
|
|
113
114
|
]);
|
|
114
115
|
}
|
|
116
|
+
// Only enable linker template sourcemapping if linker is enabled and Webpack provides
|
|
117
|
+
// a sourcemap. This logic allows the linker sourcemap behavior to be controlled by the
|
|
118
|
+
// Webpack sourcemap configuration. For example, if a vendor file is being processed
|
|
119
|
+
// and vendor sourcemaps are disabled, the `inputSourceMap` property will be `undefined`
|
|
120
|
+
// which will effectively disable linker sourcemapping for vendor files.
|
|
121
|
+
if (customOptions.angularLinker && configuration.options.inputSourceMap) {
|
|
122
|
+
customOptions.angularLinker.sourcemap = true;
|
|
123
|
+
}
|
|
115
124
|
return {
|
|
116
125
|
...configuration.options,
|
|
117
126
|
// Workaround for https://github.com/babel/babel-loader/pull/896 is available
|
package/src/ng-packagr/index.js
CHANGED
|
@@ -43,7 +43,7 @@ async function initialize(options, root) {
|
|
|
43
43
|
* @experimental Direct usage of this function is considered experimental.
|
|
44
44
|
*/
|
|
45
45
|
function execute(options, context) {
|
|
46
|
-
return rxjs_1.from(initialize(options, context.workspaceRoot)).pipe(operators_1.switchMap((packager) => (options.watch ? packager.watch() : packager.build())), operators_1.mapTo({ success: true }));
|
|
46
|
+
return rxjs_1.from(initialize(options, context.workspaceRoot)).pipe(operators_1.switchMap((packager) => (options.watch ? packager.watch() : packager.build())), operators_1.mapTo({ success: true }), operators_1.catchError((err) => rxjs_1.of({ success: false, error: err.message })));
|
|
47
47
|
}
|
|
48
48
|
exports.execute = execute;
|
|
49
49
|
exports.default = architect_1.createBuilder(execute);
|
|
@@ -69,13 +69,13 @@ function getTestConfig(wco) {
|
|
|
69
69
|
module: {
|
|
70
70
|
rules: extraRules,
|
|
71
71
|
parser: webWorkerTsConfig === undefined
|
|
72
|
-
?
|
|
73
|
-
: {
|
|
72
|
+
? {
|
|
74
73
|
javascript: {
|
|
75
74
|
worker: false,
|
|
76
75
|
url: false,
|
|
77
76
|
},
|
|
78
|
-
}
|
|
77
|
+
}
|
|
78
|
+
: undefined,
|
|
79
79
|
},
|
|
80
80
|
plugins: extraPlugins,
|
|
81
81
|
optimization: {
|