Skip to content

Commit

Permalink
feat(plugin-vue): set default vue hydration mismatch flag (#5185)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmkx authored Jan 4, 2024
1 parent 7c8ecde commit 866ebe7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/fluffy-games-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@modern-js/builder-plugin-vue': patch
---

feat: set default vue hydration mismatch flag
feat: 设置默认 vue hydration mismatch flag
1 change: 1 addition & 0 deletions packages/builder/plugin-vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export function builderPluginVue(
// https://link.vuejs.org/feature-flags
__VUE_OPTIONS_API__: true,
__VUE_PROD_DEVTOOLS__: false,
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false,
},
},
tools: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ exports[`plugins/vue > should define feature flags correctly 1`] = `
"definitions": {
"__VUE_OPTIONS_API__": true,
"__VUE_PROD_DEVTOOLS__": false,
"__VUE_PROD_HYDRATION_MISMATCH_DETAILS__": false,
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.NODE_ENV": "\\"test\\"",
},
Expand Down

0 comments on commit 866ebe7

Please sign in to comment.