소스 검색

fix: import patchFlags from @vue/shared in compiler instead

Otherwise this imports unnecessary stuff from the runtime.
Evan You 6 년 전
부모
커밋
9c9ef609d8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/compiler-core/src/transforms/hoistStatic.ts

+ 1 - 1
packages/compiler-core/src/transforms/hoistStatic.ts

@@ -9,7 +9,7 @@ import {
 import { TransformContext } from '../transform'
 import { APPLY_DIRECTIVES } from '../runtimeConstants'
 import { PropsExpression } from './transformElement'
-import { PatchFlags } from '@vue/runtime-dom'
+import { PatchFlags } from '@vue/shared'
 
 export function hoistStatic(root: RootNode, context: TransformContext) {
   walk(root.children, context, new Map<TemplateChildNode, boolean>())