Skip to content

Commit

Permalink
fix: ignore .prop/.attr modifiers in ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jul 16, 2021
1 parent e66a493 commit 29732c2
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/compiler-core/src/transforms/vBind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 29732c2

Please sign in to comment.