Skip to content

Commit

Permalink
fix: avoid confusing breakage in @vitejs/plugin-vue
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Nov 25, 2023
1 parent 6ec85ae commit ceec69c
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 @@ -69,3 +69,10 @@ export type {
CompilerError,
BindingMetadata
} from '@vue/compiler-core'

/**
* @deprecated this is preserved to avoid breaking vite-plugin-vue < 5.0
* with reactivityTransform: true. The desired behavior should be silently
* ignoring the option instead of breaking.
*/
export const shouldTransformRef = () => false

0 comments on commit ceec69c

Please sign in to comment.