Skip to content

Commit c645d1a

Browse files
committed
fix(bundler-webpack): inject all vue feature flags explicitly
1 parent d1c0d73 commit c645d1a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +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),
212213
}
213214

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +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),
3031
},
3132
])
3233

0 commit comments

Comments
 (0)