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