From 4f46bfb779d03a80f1d56102ec3cb8f35686563a Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Fri, 8 Feb 2019 22:10:20 +0000 Subject: [PATCH] fix(core): use the correct generated URL for JIT compiled components (#28055) Previously the generated code was being mapped to the `templateUrl` value. PR Close #28055 --- packages/compiler/src/jit_compiler_facade.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler/src/jit_compiler_facade.ts b/packages/compiler/src/jit_compiler_facade.ts index 589e54afbf..a7d8cef6dd 100644 --- a/packages/compiler/src/jit_compiler_facade.ts +++ b/packages/compiler/src/jit_compiler_facade.ts @@ -143,7 +143,7 @@ export class CompilerFacadeImpl implements CompilerFacade { constantPool, makeBindingParser(interpolationConfig)); const preStatements = [...constantPool.statements, ...res.statements]; return this.jitExpression( - res.expression, angularCoreEnv, sourceMapUrl, preStatements); + res.expression, angularCoreEnv, `ng:///${facade.name}.js`, preStatements); } createParseSourceSpan(kind: string, typeName: string, sourceUrl: string): ParseSourceSpan {