Skip to content

Commit 29732c2

Browse files
committed
fix: ignore .prop/.attr modifiers in ssr
1 parent e66a493 commit 29732c2

File tree

1 file changed

+7
-6
lines changed
  • packages/compiler-core/src/transforms

1 file changed

+7
-6
lines changed

packages/compiler-core/src/transforms/vBind.ts

+7-6
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,13 @@ export const transformBind: DirectiveTransform = (dir, _node, context) => {
3737
}
3838
}
3939

40-
if (modifiers.includes('prop')) {
41-
injectPrefix(arg, '.')
42-
}
43-
44-
if (modifiers.includes('attr')) {
45-
injectPrefix(arg, '^')
40+
if (!context.inSSR) {
41+
if (modifiers.includes('prop')) {
42+
injectPrefix(arg, '.')
43+
}
44+
if (modifiers.includes('attr')) {
45+
injectPrefix(arg, '^')
46+
}
4647
}
4748

4849
if (

0 commit comments

Comments
 (0)