fix(ssr): remove missing ssr directive transform error
This commit is contained in:
@@ -179,18 +179,10 @@ export const ssrTransformElement: NodeTransform = (node, context) => {
|
||||
if (!hasDynamicVBind) {
|
||||
node.children = [createInterpolation(prop.exp, prop.loc)]
|
||||
}
|
||||
} else {
|
||||
} else if (!hasDynamicVBind) {
|
||||
// Directive transforms.
|
||||
const directiveTransform = context.directiveTransforms[prop.name]
|
||||
if (!directiveTransform) {
|
||||
// no corresponding ssr directive transform found.
|
||||
context.onError(
|
||||
createSSRCompilerError(
|
||||
SSRErrorCodes.X_SSR_CUSTOM_DIRECTIVE_NO_TRANSFORM,
|
||||
prop.loc
|
||||
)
|
||||
)
|
||||
} else if (!hasDynamicVBind) {
|
||||
if (directiveTransform) {
|
||||
const { props, ssrTagParts } = directiveTransform(
|
||||
prop,
|
||||
node,
|
||||
|
||||
Reference in New Issue
Block a user