Skip to content

Commit

Permalink
fix(compiler-sfc): export parseComponent for compat with fork-ts-chec…
Browse files Browse the repository at this point in the history
…ker-webpack-plugin

fix #12719
  • Loading branch information
yyx990803 committed Oct 11, 2022
1 parent bc5b92a commit 0d6d972
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/compiler-sfc/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 0d6d972

Please sign in to comment.