Skip to content

Commit

Permalink
feat(compiler-sfc): export aggregated error messages for compiler-cor…
Browse files Browse the repository at this point in the history
…e and compiler-dom
  • Loading branch information
yyx990803 committed Dec 26, 2023
1 parent 5fa4b65 commit 25c726e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/compiler-sfc/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, SFCParseResult>

// 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'
Expand Down

0 comments on commit 25c726e

Please sign in to comment.