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
This commit is contained in:
Pete Bacon Darwin 2019-02-08 22:10:20 +00:00 committed by Misko Hevery
parent a5ea55a636
commit 4f46bfb779
1 changed files with 1 additions and 1 deletions

View File

@ -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 {