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

Otherwise this imports unnecessary stuff from the runtime.
This commit is contained in:
Evan You 2019-10-04 22:47:09 -04:00
parent a0f442f1d4
commit 9c9ef609d8

View File

@ -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>())