From a5a8cc53bfd6567ff30b7a3572c6712b6d66b2ea Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Fri, 13 Dec 2019 12:43:21 -0500 Subject: [PATCH] fix(@angular-devkit/build-angular): optimize web worker differential loading processing Closes #16441 --- .../angular_devkit/build_angular/src/utils/process-bundle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular_devkit/build_angular/src/utils/process-bundle.ts b/packages/angular_devkit/build_angular/src/utils/process-bundle.ts index fb35bba6e899..f1f8b495b170 100644 --- a/packages/angular_devkit/build_angular/src/utils/process-bundle.ts +++ b/packages/angular_devkit/build_angular/src/utils/process-bundle.ts @@ -489,7 +489,7 @@ function createReplacePlugin(replacements: [string, string][]): PluginObj { StringLiteral(path: NodePath) { for (const replacement of replacements) { if (path.node.value === replacement[0]) { - path.replaceWith(types.stringLiteral(replacement[1])); + path.node.value = replacement[1]; } } },