Revert "fix(compiler): fix transpiled ES5 code (#13322)"
This reverts commit 4398056146
.
This commit is contained in:
parent
61d7c1e0b3
commit
4e3d58a792
|
@ -213,11 +213,11 @@ export class JitCompiler implements Compiler {
|
||||||
const compMeta = this._metadataResolver.getDirectiveMetadata(compType);
|
const compMeta = this._metadataResolver.getDirectiveMetadata(compType);
|
||||||
assertComponent(compMeta);
|
assertComponent(compMeta);
|
||||||
|
|
||||||
const hostClass = {
|
class HostClass {
|
||||||
overriddenName: `${identifierName(compMeta.type)}_Host`,
|
static overriddenName = `${identifierName(compMeta.type)}_Host`;
|
||||||
};
|
}
|
||||||
|
|
||||||
const hostMeta = createHostComponentMeta(hostClass, compMeta);
|
const hostMeta = createHostComponentMeta(HostClass, compMeta);
|
||||||
compiledTemplate = new CompiledTemplate(
|
compiledTemplate = new CompiledTemplate(
|
||||||
true, compMeta.selector, compMeta.type, hostMeta, ngModule, [compMeta.type]);
|
true, compMeta.selector, compMeta.type, hostMeta, ngModule, [compMeta.type]);
|
||||||
this._compiledHostTemplateCache.set(compType, compiledTemplate);
|
this._compiledHostTemplateCache.set(compType, compiledTemplate);
|
||||||
|
|
Loading…
Reference in New Issue