@ngtools/webpack 12.1.0-next.3 → 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.
@@ -8,12 +8,11 @@
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.addError = exports.addWarning = void 0;
11
- const webpack_1 = require("webpack");
12
11
  function addWarning(compilation, message) {
13
- compilation.warnings.push(new webpack_1.WebpackError(message));
12
+ compilation.warnings.push(new compilation.compiler.webpack.WebpackError(message));
14
13
  }
15
14
  exports.addWarning = addWarning;
16
15
  function addError(compilation, message) {
17
- compilation.errors.push(new webpack_1.WebpackError(message));
16
+ compilation.errors.push(new compilation.compiler.webpack.WebpackError(message));
18
17
  }
19
18
  exports.addError = addError;
@@ -1,34 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import * as ts from 'typescript';
9
- export declare enum OPERATION_KIND {
10
- Remove = 0,
11
- Add = 1,
12
- Replace = 2
13
- }
14
- export interface StandardTransform {
15
- (sourceFile: ts.SourceFile): TransformOperation[];
16
- }
17
- export declare abstract class TransformOperation {
18
- kind: OPERATION_KIND;
19
- sourceFile: ts.SourceFile;
20
- target: ts.Node;
21
- constructor(kind: OPERATION_KIND, sourceFile: ts.SourceFile, target: ts.Node);
22
- }
23
- export declare class RemoveNodeOperation extends TransformOperation {
24
- constructor(sourceFile: ts.SourceFile, target: ts.Node);
25
- }
26
- export declare class AddNodeOperation extends TransformOperation {
27
- before?: ts.Node | undefined;
28
- after?: ts.Node | undefined;
29
- constructor(sourceFile: ts.SourceFile, target: ts.Node, before?: ts.Node | undefined, after?: ts.Node | undefined);
30
- }
31
- export declare class ReplaceNodeOperation extends TransformOperation {
32
- replacement: ts.Node;
33
- constructor(sourceFile: ts.SourceFile, target: ts.Node, replacement: ts.Node);
34
- }
@@ -1,45 +0,0 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.ReplaceNodeOperation = exports.AddNodeOperation = exports.RemoveNodeOperation = exports.TransformOperation = exports.OPERATION_KIND = void 0;
11
- var OPERATION_KIND;
12
- (function (OPERATION_KIND) {
13
- OPERATION_KIND[OPERATION_KIND["Remove"] = 0] = "Remove";
14
- OPERATION_KIND[OPERATION_KIND["Add"] = 1] = "Add";
15
- OPERATION_KIND[OPERATION_KIND["Replace"] = 2] = "Replace";
16
- })(OPERATION_KIND = exports.OPERATION_KIND || (exports.OPERATION_KIND = {}));
17
- class TransformOperation {
18
- constructor(kind, sourceFile, target) {
19
- this.kind = kind;
20
- this.sourceFile = sourceFile;
21
- this.target = target;
22
- }
23
- }
24
- exports.TransformOperation = TransformOperation;
25
- class RemoveNodeOperation extends TransformOperation {
26
- constructor(sourceFile, target) {
27
- super(OPERATION_KIND.Remove, sourceFile, target);
28
- }
29
- }
30
- exports.RemoveNodeOperation = RemoveNodeOperation;
31
- class AddNodeOperation extends TransformOperation {
32
- constructor(sourceFile, target, before, after) {
33
- super(OPERATION_KIND.Add, sourceFile, target);
34
- this.before = before;
35
- this.after = after;
36
- }
37
- }
38
- exports.AddNodeOperation = AddNodeOperation;
39
- class ReplaceNodeOperation extends TransformOperation {
40
- constructor(sourceFile, target, replacement) {
41
- super(OPERATION_KIND.Replace, sourceFile, target);
42
- this.replacement = replacement;
43
- }
44
- }
45
- exports.ReplaceNodeOperation = ReplaceNodeOperation;