fix: ignore .prop/.attr modifiers in ssr
This commit is contained in:
parent
e66a493da1
commit
29732c2c86
@ -37,12 +37,13 @@ export const transformBind: DirectiveTransform = (dir, _node, context) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (modifiers.includes('prop')) {
|
if (!context.inSSR) {
|
||||||
injectPrefix(arg, '.')
|
if (modifiers.includes('prop')) {
|
||||||
}
|
injectPrefix(arg, '.')
|
||||||
|
}
|
||||||
if (modifiers.includes('attr')) {
|
if (modifiers.includes('attr')) {
|
||||||
injectPrefix(arg, '^')
|
injectPrefix(arg, '^')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
Loading…
Reference in New Issue
Block a user