Skip to content

Commit 6da9c7e

Browse files
committed
fix: do not bundle DeprecationTypes in non-compat build
1 parent 9d519a9 commit 6da9c7e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/runtime-core/src/index.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ export const ssrUtils = (__SSR__ ? _ssrUtils : null) as typeof _ssrUtils
361361

362362
// 2.x COMPAT ------------------------------------------------------------------
363363

364-
export { DeprecationTypes } from './compat/compatConfig'
364+
import { DeprecationTypes as _DeprecationTypes } from './compat/compatConfig'
365365
export type { CompatVue } from './compat/global'
366366
export type { LegacyConfig } from './compat/globalConfig'
367367

@@ -393,3 +393,7 @@ const _compatUtils = {
393393
export const compatUtils = (
394394
__COMPAT__ ? _compatUtils : null
395395
) as typeof _compatUtils
396+
397+
export const DeprecationTypes = (
398+
__COMPAT__ ? _DeprecationTypes : null
399+
) as typeof _DeprecationTypes

0 commit comments

Comments
 (0)