feat(compiler): v-text transform + move dom-specific errros codes to compiler-dom

This commit is contained in:
Evan You
2019-10-09 11:13:13 -04:00
parent 21441830dd
commit f91d335e65
8 changed files with 174 additions and 24 deletions

View File

@@ -1,6 +1,6 @@
import {
ErrorCodes,
CompilerError,
CoreCompilerError,
createCompilerError,
defaultOnError
} from './errors'
@@ -38,7 +38,7 @@ export interface ParserOptions {
// The full set is https://html.spec.whatwg.org/multipage/named-characters.html#named-character-references
namedCharacterReferences?: { [name: string]: string | undefined }
onError?: (error: CompilerError) => void
onError?: (error: CoreCompilerError) => void
}
export const defaultParserOptions: Required<ParserOptions> = {