fix: ignore .prop/.attr modifiers in ssr

This commit is contained in:
Evan You 2021-07-14 15:53:46 -04:00
parent e66a493da1
commit 29732c2c86

View File

@ -37,13 +37,14 @@ export const transformBind: DirectiveTransform = (dir, _node, context) => {
} }
} }
if (!context.inSSR) {
if (modifiers.includes('prop')) { if (modifiers.includes('prop')) {
injectPrefix(arg, '.') injectPrefix(arg, '.')
} }
if (modifiers.includes('attr')) { if (modifiers.includes('attr')) {
injectPrefix(arg, '^') injectPrefix(arg, '^')
} }
}
if ( if (
!exp || !exp ||