Skip to content

Commit 06ad749

Browse files
committed
feat: export runtime error strings (#9301)
These strings are used for automatically generating error references in the documentation and should be considered internal. The code-to-string mapping is **not** part of the public API and can change between non-major versions. They are also exposed only in dev or the esm-bundler builds.
1 parent f1aee3d commit 06ad749

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/runtime-core/src/index.ts

+9
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,15 @@ export {
140140
} from './components/BaseTransition'
141141
export { initCustomFormatter } from './customFormatter'
142142

143+
import { ErrorTypeStrings as _ErrorTypeStrings } from './errorHandling'
144+
/**
145+
* Runtime error messages. Only exposed in dev or esm builds.
146+
* @internal
147+
*/
148+
export const ErrorTypeStrings = (
149+
__ESM_BUNDLER__ || __DEV__ ? _ErrorTypeStrings : null
150+
) as typeof _ErrorTypeStrings
151+
143152
// For devtools
144153
export { devtools, setDevtoolsHook } from './devtools'
145154

0 commit comments

Comments
 (0)