瀏覽代碼

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