fix: avoid confusing breakage in @vitejs/plugin-vue

This commit is contained in:
Evan You 2023-11-25 16:39:30 +08:00
parent 6ec85ae872
commit ceec69c8cc
1 changed files with 7 additions and 0 deletions

View File

@ -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