From: Evan You Date: Sat, 25 Nov 2023 08:39:30 +0000 (+0800) Subject: fix: avoid confusing breakage in @vitejs/plugin-vue X-Git-Tag: v3.4.0-alpha.2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ceec69c8ccb96c433a4a506ad2e85e276998bade;p=thirdparty%2Fvuejs%2Fcore.git fix: avoid confusing breakage in @vitejs/plugin-vue --- diff --git a/packages/compiler-sfc/src/index.ts b/packages/compiler-sfc/src/index.ts index 78ea621b23..7297acbed7 100644 --- a/packages/compiler-sfc/src/index.ts +++ b/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