]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix: avoid confusing breakage in @vitejs/plugin-vue
authorEvan You <yyx990803@gmail.com>
Sat, 25 Nov 2023 08:39:30 +0000 (16:39 +0800)
committerEvan You <yyx990803@gmail.com>
Sat, 25 Nov 2023 08:39:42 +0000 (16:39 +0800)
packages/compiler-sfc/src/index.ts

index 78ea621b23c5363f4ea2d29c79e167be280e0c58..7297acbed76f99ef1e32e721cb5a90dd4a484653 100644 (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