diff --git a/packages/compiler-dom/src/index.ts b/packages/compiler-dom/src/index.ts index 8bbc774c..f7732d61 100644 --- a/packages/compiler-dom/src/index.ts +++ b/packages/compiler-dom/src/index.ts @@ -4,7 +4,8 @@ import { CompilerOptions, CodegenResult, isBuiltInType, - ParserOptions + ParserOptions, + RootNode } from '@vue/compiler-core' import { parserOptionsMinimal } from './parserOptionsMinimal' import { parserOptionsStandard } from './parserOptionsStandard' @@ -46,7 +47,7 @@ export function compile( }) } -export function parse(template: string, options: ParserOptions = {}) { +export function parse(template: string, options: ParserOptions = {}): RootNode { return baseParse(template, { ...parserOptions, ...options