fix(compiler-core): avoid prefixing empty interpolations (#290)

This commit is contained in:
HcySunYang
2019-10-16 04:58:01 +08:00
committed by Evan You
parent 555e3be69d
commit 3385480ba7
2 changed files with 19 additions and 1 deletions

View File

@@ -77,7 +77,7 @@ export function processExpression(
// function params
asParams: boolean = false
): ExpressionNode {
if (!context.prefixIdentifiers) {
if (!context.prefixIdentifiers || !node.content.trim()) {
return node
}