Skip to content

Commit 217a87e

Browse files
cyrilletuzifilipesilva
authored andcommitted
fix(@ngtools/webpack) rename deprecated magicString.insertLeft() to appendLeft() (angular#4582)
Fixes angular#4581
1 parent 4917715 commit 217a87e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@ngtools/webpack/src/refactor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ export class TypeScriptFileRefactor {
128128
this._sourceString.appendRight(node.getEnd(), text);
129129
}
130130
append(node: ts.Node, text: string): void {
131-
this._sourceString.insertLeft(node.getEnd(), text);
131+
this._sourceString.appendLeft(node.getEnd(), text);
132132
}
133133

134134
prependBefore(node: ts.Node, text: string) {
135-
this._sourceString.insertLeft(node.getStart(), text);
135+
this._sourceString.appendLeft(node.getStart(), text);
136136
}
137137

138138
insertImport(symbolName: string, modulePath: string): void {

0 commit comments

Comments
 (0)