refactor(compiler): only produce log expressions for elements / text (#15350)

This change reduces the amount of generated code by only adding `log`
calls for elements and text nodes.

We need the `log` calls to allow users to jump to the right place
in the template via source maps. However, we only need it for element
and text nodes, but not for directives, queries, … as for them we 
first locate the corresponding element or text node.

Related to #15239

PR Close #15350
This commit is contained in:
Tobias Bosch
2017-03-21 08:41:19 -07:00
committed by Miško Hevery
parent 431eb309f3
commit 1e8b132ade
4 changed files with 87 additions and 29 deletions

View File

@ -83,7 +83,6 @@ export function main() {
expect(debugCtx.renderNode).toBe(asElementData(compView, 0).renderElement);
});
});
});
}