]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(hydration): also set vShow name if __FEATURE_PROD_HYDRATION_MISMATCH_DETAILS__...
authoredison <daiwei521@126.com>
Wed, 20 Aug 2025 12:41:07 +0000 (20:41 +0800)
committerGitHub <noreply@github.com>
Wed, 20 Aug 2025 12:41:07 +0000 (20:41 +0800)
close #13744

packages/runtime-dom/src/directives/vShow.ts

index f8f41bb04d4d0ffbe8d39e68d3312d4848edafc2..2fa934efe521ca1b3239b77709dbc4b9aa20615e 100644 (file)
@@ -45,7 +45,7 @@ export const vShow: ObjectDirective<VShowElement> & { name?: 'show' } = {
   },
 }
 
-if (__DEV__) {
+if (__DEV__ || __FEATURE_PROD_HYDRATION_MISMATCH_DETAILS__) {
   vShow.name = 'show'
 }