@angular-devkit/build-angular 12.2.9 → 12.2.10
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.10",
|
|
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.10",
|
|
11
|
+
"@angular-devkit/build-optimizer": "0.1202.10",
|
|
12
|
+
"@angular-devkit/build-webpack": "0.1202.10",
|
|
13
|
+
"@angular-devkit/core": "12.2.10",
|
|
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.10",
|
|
26
26
|
"ansi-colors": "4.1.1",
|
|
27
27
|
"babel-loader": "8.2.2",
|
|
28
28
|
"browserslist": "^4.9.1",
|
|
@@ -7,9 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
declare module 'babel-loader' {
|
|
10
|
-
type BabelLoaderCustomizer<T> = (
|
|
11
|
-
babel: typeof import('@babel/core'),
|
|
12
|
-
) => {
|
|
10
|
+
type BabelLoaderCustomizer<T> = (babel: typeof import('@babel/core')) => {
|
|
13
11
|
customOptions?(
|
|
14
12
|
this: import('webpack').loader.LoaderContext,
|
|
15
13
|
loaderOptions: Record<string, unknown>,
|
|
@@ -20,6 +18,17 @@ declare module 'babel-loader' {
|
|
|
20
18
|
configuration: import('@babel/core').PartialConfig,
|
|
21
19
|
loaderArguments: { source: string; map?: unknown; customOptions: T },
|
|
22
20
|
): import('@babel/core').TransformOptions;
|
|
21
|
+
result?(
|
|
22
|
+
this: import('webpack').loader.LoaderContext,
|
|
23
|
+
result: import('@babel/core').BabelFileResult,
|
|
24
|
+
context: {
|
|
25
|
+
source: string;
|
|
26
|
+
map?: unknown;
|
|
27
|
+
customOptions: T;
|
|
28
|
+
configuration: import('@babel/core').PartialConfig;
|
|
29
|
+
options: import('@babel/core').TransformOptions;
|
|
30
|
+
},
|
|
31
|
+
): import('@babel/core').BabelFileResult;
|
|
23
32
|
};
|
|
24
33
|
function custom<T>(customizer: BabelLoaderCustomizer<T>): import('webpack').loader.Loader;
|
|
25
34
|
}
|
|
@@ -6,7 +6,11 @@
|
|
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
|
+
};
|
|
9
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
const remapping_1 = __importDefault(require("@ampproject/remapping"));
|
|
10
14
|
const linker_1 = require("@angular/compiler-cli/linker");
|
|
11
15
|
const babel_loader_1 = require("babel-loader");
|
|
12
16
|
const typescript_1 = require("typescript");
|
|
@@ -118,10 +122,10 @@ exports.default = babel_loader_1.custom(() => {
|
|
|
118
122
|
}
|
|
119
123
|
return {
|
|
120
124
|
...configuration.options,
|
|
121
|
-
//
|
|
122
|
-
//
|
|
125
|
+
// Using `false` disables babel from attempting to locate sourcemaps or process any inline maps.
|
|
126
|
+
// The babel types do not include the false option even though it is valid
|
|
123
127
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
124
|
-
inputSourceMap:
|
|
128
|
+
inputSourceMap: false,
|
|
125
129
|
plugins,
|
|
126
130
|
presets: [
|
|
127
131
|
...(configuration.options.presets || []),
|
|
@@ -146,5 +150,16 @@ exports.default = babel_loader_1.custom(() => {
|
|
|
146
150
|
],
|
|
147
151
|
};
|
|
148
152
|
},
|
|
153
|
+
result(result, { map: inputSourceMap }) {
|
|
154
|
+
if (result.map && inputSourceMap) {
|
|
155
|
+
// Merge the intermediate sourcemap generated by babel with the input source map.
|
|
156
|
+
// The casting is required due to slight differences in the types for babel and
|
|
157
|
+
// `@ampproject/remapping` source map objects but both are compatible with Webpack.
|
|
158
|
+
// This method for merging is used because it provides more accurate output
|
|
159
|
+
// and is faster while using less memory.
|
|
160
|
+
result.map = remapping_1.default([result.map, inputSourceMap], () => null);
|
|
161
|
+
}
|
|
162
|
+
return result;
|
|
163
|
+
},
|
|
149
164
|
};
|
|
150
165
|
});
|
|
@@ -61,6 +61,7 @@ function getTestConfig(wco) {
|
|
|
61
61
|
target: wco.tsConfig.options.target === typescript_1.ScriptTarget.ES5 ? ['web', 'es5'] : 'web',
|
|
62
62
|
resolve: {
|
|
63
63
|
mainFields: ['es2015', 'browser', 'module', 'main'],
|
|
64
|
+
conditionNames: ['es2015', '...'],
|
|
64
65
|
},
|
|
65
66
|
devtool: false,
|
|
66
67
|
entry: {
|