diff --git a/packages/compiler-sfc/src/index.ts b/packages/compiler-sfc/src/index.ts index 7297acbed76..98b01c4bec1 100644 --- a/packages/compiler-sfc/src/index.ts +++ b/packages/compiler-sfc/src/index.ts @@ -12,6 +12,17 @@ import { SFCParseResult, parseCache as _parseCache } from './parse' // #9521 export parseCache as a simple map to avoid exposing LRU types export const parseCache = _parseCache as Map +// error messages +import { + errorMessages as coreErrorMessages, + DOMErrorMessages +} from '@vue/compiler-dom' + +export const errorMessages = { + ...coreErrorMessages, + ...DOMErrorMessages +} + // Utilities export { parse as babelParse } from '@babel/parser' import MagicString from 'magic-string'