diff --git a/packages/compiler-core/src/transforms/vBind.ts b/packages/compiler-core/src/transforms/vBind.ts index e3ffed42..e8c653b6 100644 --- a/packages/compiler-core/src/transforms/vBind.ts +++ b/packages/compiler-core/src/transforms/vBind.ts @@ -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 (