Skip to content

Vue 3.4 Release #9139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Prev Previous commit
Next Next commit
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.
  • Loading branch information
sxzz committed Oct 27, 2023
commit feb2f2edce2d91218a5e9a52c81e322e4033296b
9 changes: 9 additions & 0 deletions packages/runtime-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,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'

Expand Down