fix: ignore .prop/.attr modifiers in ssr
This commit is contained in:
parent
e66a493da1
commit
29732c2c86
@ -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 ||
|
||||||
|
Loading…
Reference in New Issue
Block a user