fix(compiler-sfc): export parseComponent for compat with fork-ts-checker-webpack-plugin

fix #12719
This commit is contained in:
Evan You 2022-10-11 14:58:24 +08:00
parent bc5b92adde
commit 0d6d972b32

View File

@ -6,6 +6,13 @@ export { compileScript } from './compileScript'
export { generateCodeFrame } from 'compiler/codeframe'
export { rewriteDefault } from './rewriteDefault'
// For backwards compat only. Some existing tools like
// fork-ts-checker-webpack-plugin relies on its presence for differentiating
// between Vue 2 and Vue 3.
// ref #12719
// ref https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/765
export { parseComponent } from './parseComponent'
// types
export { SFCParseOptions } from './parse'
export { CompilerOptions, WarningMessage } from 'types/compiler'