test: update tests and snapshots for helper prefixing

This commit is contained in:
Evan You
2020-02-07 19:04:55 -05:00
parent 51317af6e8
commit 8b2d6a35d0
22 changed files with 293 additions and 257 deletions

View File

@@ -196,7 +196,7 @@ export function generate(
// enter render function
if (genScopeId && !ssr) {
push(`const render = withId(`)
push(`const render = _withId(`)
}
if (!ssr) {
push(`function render() {`)
@@ -395,7 +395,7 @@ function genModulePreamble(
}
if (genScopeId) {
push(`const withId = ${helper(WITH_SCOPE_ID)}("${scopeId}")`)
push(`const _withId = ${helper(WITH_SCOPE_ID)}("${scopeId}")`)
newline()
}
@@ -719,7 +719,7 @@ function genFunctionExpression(
!__BROWSER__ && isSlot && scopeId != null && mode !== 'function'
if (genScopeId) {
push(`withId(`)
push(`_withId(`)
}
push(`(`, node)
if (isArray(params)) {