Skip to content

Commit a5a8cc5

Browse files
clydinvikerman
authored andcommitted
fix(@angular-devkit/build-angular): optimize web worker differential loading processing
Closes #16441
1 parent ff5f795 commit a5a8cc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/utils/process-bundle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ function createReplacePlugin(replacements: [string, string][]): PluginObj {
489489
StringLiteral(path: NodePath<types.StringLiteral>) {
490490
for (const replacement of replacements) {
491491
if (path.node.value === replacement[0]) {
492-
path.replaceWith(types.stringLiteral(replacement[1]));
492+
path.node.value = replacement[1];
493493
}
494494
}
495495
},

0 commit comments

Comments
 (0)