Explorar el Código

fix(compiler-ssr): no need to inject resolveDirective calls for setup custom directives

Evan You hace 4 años
padre
commit
436c500d2c
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. 0 1
      packages/compiler-ssr/src/transforms/ssrTransformElement.ts

+ 0 - 1
packages/compiler-ssr/src/transforms/ssrTransformElement.ts

@@ -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`,