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 25, 2023
1 parent f75de2e commit 0d29bbe
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 @@ -165,6 +165,8 @@ export default function vuePlugin(rawOptions: 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,
},
ssr: {
// @ts-ignore -- config.legacy.buildSsrCjsExternalHeuristics will be removed in Vite 5
Expand Down

0 comments on commit 0d29bbe

Please sign in to comment.