]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(compiler-ssr): no need to inject resolveDirective calls for setup custom directives
authorEvan You <yyx990803@gmail.com>
Sat, 12 Feb 2022 08:18:54 +0000 (16:18 +0800)
committerEvan You <yyx990803@gmail.com>
Sat, 12 Feb 2022 08:29:24 +0000 (16:29 +0800)
packages/compiler-ssr/src/transforms/ssrTransformElement.ts

index 08b7f4ad00b72a2e05e25539eb99dcc97bd2a3e3..32991ed8def00b16991e9a7e3db6d2c8d756aa07 100644 (file)
@@ -338,7 +338,6 @@ export function buildSSRProps(
   }
   if (directives.length) {
     for (const dir of directives) {
-      context.directives.add(dir.name)
       mergePropsArgs.push(
         createCallExpression(context.helper(SSR_GET_DIRECTIVE_PROPS), [
           `_ctx`,