Skip to content

Commit 0d6d972

Browse files
committed
fix(compiler-sfc): export parseComponent for compat with fork-ts-checker-webpack-plugin
fix #12719
1 parent bc5b92a commit 0d6d972

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/compiler-sfc/src/index.ts

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ export { compileScript } from './compileScript'
66
export { generateCodeFrame } from 'compiler/codeframe'
77
export { rewriteDefault } from './rewriteDefault'
88

9+
// For backwards compat only. Some existing tools like
10+
// fork-ts-checker-webpack-plugin relies on its presence for differentiating
11+
// between Vue 2 and Vue 3.
12+
// ref #12719
13+
// ref https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/765
14+
export { parseComponent } from './parseComponent'
15+
916
// types
1017
export { SFCParseOptions } from './parse'
1118
export { CompilerOptions, WarningMessage } from 'types/compiler'

0 commit comments

Comments
 (0)