refactor: use named export for compiled render function

This commit is contained in:
Evan You
2019-12-24 10:51:26 -05:00
parent 4d20981eb0
commit 59c595c1e8
10 changed files with 21 additions and 21 deletions

View File

@@ -224,12 +224,12 @@ export function generate(
}
genHoists(ast.hoists, context)
newline()
push(`export default `)
push(`export `)
}
// enter render function
if (genScopeId) {
push(`withId(`)
push(`const render = withId(`)
}
push(`function render() {`)
indent()