refactor(compiler-core): hoist static text calls between elements

This commit is contained in:
Evan You
2020-02-10 18:32:11 -05:00
parent 12fcf9ab95
commit f4c54a888b
5 changed files with 42 additions and 38 deletions

View File

@@ -243,7 +243,7 @@ export interface ForNode extends Node {
export interface TextCallNode extends Node {
type: NodeTypes.TEXT_CALL
content: TextNode | InterpolationNode | CompoundExpressionNode
codegenNode: CallExpression
codegenNode: CallExpression | SimpleExpressionNode // when hoisted
}
// JS Node Types ---------------------------------------------------------------