Skip to content

Commit 64e07bb

Browse files
authored
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 be91d43 commit 64e07bb

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
@@ -133,6 +133,15 @@ export {
133133
} from './components/BaseTransition'
134134
export { initCustomFormatter } from './customFormatter'
135135

136+
import { ErrorTypeStrings as _ErrorTypeStrings } from './errorHandling'
137+
/**
138+
* Runtime error messages. Only exposed in dev or esm builds.
139+
* @internal
140+
*/
141+
export const ErrorTypeStrings = (
142+
__ESM_BUNDLER__ || __DEV__ ? _ErrorTypeStrings : null
143+
) as typeof _ErrorTypeStrings
144+
136145
// For devtools
137146
export { devtools, setDevtoolsHook } from './devtools'
138147

0 commit comments

Comments
 (0)