From d96a7fb4fe9ff3596ab6da29203ee3d45707b9e8 Mon Sep 17 00:00:00 2001 From: Appie Date: Thu, 5 Jan 2017 13:03:51 +0100 Subject: [PATCH] Fix(typo): Properly appends I haven't been able to get NGC to kick in using different flags as mentioned at d53f25f, this typo might be the cause of the issue. --- src/aot/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aot/utils.ts b/src/aot/utils.ts index 81065bc6..d8c46f8a 100644 --- a/src/aot/utils.ts +++ b/src/aot/utils.ts @@ -96,7 +96,7 @@ function getPlatformBrowserFunctionNode(filePath: string, fileContent: string) { modifiedFileContent = appendBefore(filePath, modifiedFileContent, callsToPlatformBrowser[0].expression, toAppend); } else { // just throw it at the bottom - modifiedFileContent + toAppend; + modifiedFileContent += toAppend; } return modifiedFileContent; }