Skip to content

Commit

Permalink
feat: provide default value for __VUE_PROD_HYDRATION_MISMATCH_DETAILS…
Browse files Browse the repository at this point in the history
…__ (new in Vue 3.4)
  • Loading branch information
yyx990803 committed Dec 8, 2023
1 parent d802917 commit 0fbc4a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/plugin-vue-jsx/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ function vueJsxPlugin(options: Options = {}): Plugin {
define: {
__VUE_OPTIONS_API__: config.define?.__VUE_OPTIONS_API__ ?? true,
__VUE_PROD_DEVTOOLS__: config.define?.__VUE_PROD_DEVTOOLS__ ?? false,
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:
config.define?.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ ?? false,
},
}
},
Expand Down
2 changes: 2 additions & 0 deletions packages/plugin-vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin<Api> {
define: {
__VUE_OPTIONS_API__: config.define?.__VUE_OPTIONS_API__ ?? true,
__VUE_PROD_DEVTOOLS__: config.define?.__VUE_PROD_DEVTOOLS__ ?? false,
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:
config.define?.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ ?? false,
},
ssr: {
// @ts-ignore -- config.legacy.buildSsrCjsExternalHeuristics will be removed in Vite 5
Expand Down

0 comments on commit 0fbc4a4

Please sign in to comment.