From 6da9c7ecf172e74c12ce87c340140759c5eec021 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 29 Nov 2023 12:18:12 +0800 Subject: [PATCH] fix: do not bundle DeprecationTypes in non-compat build --- packages/runtime-core/src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/runtime-core/src/index.ts b/packages/runtime-core/src/index.ts index 85bd92e75b0..fcc460c43d0 100644 --- a/packages/runtime-core/src/index.ts +++ b/packages/runtime-core/src/index.ts @@ -361,7 +361,7 @@ export const ssrUtils = (__SSR__ ? _ssrUtils : null) as typeof _ssrUtils // 2.x COMPAT ------------------------------------------------------------------ -export { DeprecationTypes } from './compat/compatConfig' +import { DeprecationTypes as _DeprecationTypes } from './compat/compatConfig' export type { CompatVue } from './compat/global' export type { LegacyConfig } from './compat/globalConfig' @@ -393,3 +393,7 @@ const _compatUtils = { export const compatUtils = ( __COMPAT__ ? _compatUtils : null ) as typeof _compatUtils + +export const DeprecationTypes = ( + __COMPAT__ ? _DeprecationTypes : null +) as typeof _DeprecationTypes