From 0da9ee5bca6d1f240cbf9db5ecc04cfd3d525e12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Wed, 27 Sep 2023 10:18:06 +0800 Subject: [PATCH] feat: export runtime errors --- packages/runtime-core/src/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/runtime-core/src/index.ts b/packages/runtime-core/src/index.ts index 0d5fc39d5f6..a5b58b1cba0 100644 --- a/packages/runtime-core/src/index.ts +++ b/packages/runtime-core/src/index.ts @@ -133,6 +133,15 @@ export { } from './components/BaseTransition' export { initCustomFormatter } from './customFormatter' +import { ErrorTypeStrings as _ErrorTypeStrings } from './errorHandling' +/** + * Runtime error messages. Only exposed in dev or esm builds. + * @internal + */ +export const ErrorTypeStrings = ( + __ESM_BUNDLER__ || __DEV__ ? _ErrorTypeStrings : null +) as typeof _ErrorTypeStrings + // For devtools export { devtools, setDevtoolsHook } from './devtools'