Explorar o código

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

Evan You %!s(int64=2) %!d(string=hai) anos
pai
achega
ceec69c8cc
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      packages/compiler-sfc/src/index.ts

+ 7 - 0
packages/compiler-sfc/src/index.ts

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