From: Evan You Date: Sat, 5 Oct 2019 02:47:09 +0000 (-0400) Subject: fix: import patchFlags from @vue/shared in compiler instead X-Git-Tag: v3.0.0-alpha.0~610 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c9ef609d82ef8c2c0c80050c71ccad11aea72cd;p=thirdparty%2Fvuejs%2Fcore.git fix: import patchFlags from @vue/shared in compiler instead Otherwise this imports unnecessary stuff from the runtime. --- diff --git a/packages/compiler-core/src/transforms/hoistStatic.ts b/packages/compiler-core/src/transforms/hoistStatic.ts index a4371fdb9d..8c6bd5b7f8 100644 --- a/packages/compiler-core/src/transforms/hoistStatic.ts +++ b/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())