소스 검색

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

Evan You 4 년 전
부모
커밋
436c500d2c
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  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`,