Skip to content

Commit b752f9c

Browse files
authoredApr 8, 2024··
feat: enable hydration mismatch details in debug mode (#1530)
1 parent 950f158 commit b752f9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎packages/bundler-vite/src/plugins/vuepressMainPlugin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ const resolveDefine = async ({
209209
// enable options API by default
210210
__VUE_OPTIONS_API__: JSON.stringify(true),
211211
__VUE_PROD_DEVTOOLS__: JSON.stringify(app.env.isDebug),
212-
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: JSON.stringify(false),
212+
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: JSON.stringify(app.env.isDebug),
213213
}
214214

215215
// override vite built-in define config in debug mode

‎packages/bundler-webpack/src/config/handlePluginDefine.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const handlePluginDefine = async ({
2727
// enable options API by default
2828
__VUE_OPTIONS_API__: JSON.stringify(true),
2929
__VUE_PROD_DEVTOOLS__: JSON.stringify(app.env.isDebug),
30-
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: JSON.stringify(false),
30+
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: JSON.stringify(app.env.isDebug),
3131
},
3232
])
3333

0 commit comments

Comments
 (0)
Please sign in to comment.