From 25c726eca81fc384b41fafbeba5e8dfcda1f030f Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 26 Dec 2023 15:06:56 +0800 Subject: [PATCH] feat(compiler-sfc): export aggregated error messages for compiler-core and compiler-dom --- packages/compiler-sfc/src/index.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) 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'