Skip to content

Commit

Permalink
fix(bundler-webpack): inject all vue feature flags explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Feb 19, 2024
1 parent d1c0d73 commit c645d1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/bundler-vite/src/plugins/vuepressMainPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ const resolveDefine = async ({
// enable options API by default
__VUE_OPTIONS_API__: JSON.stringify(true),
__VUE_PROD_DEVTOOLS__: JSON.stringify(app.env.isDebug),
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: JSON.stringify(false),
}

// override vite built-in define config in debug mode
Expand Down
1 change: 1 addition & 0 deletions packages/bundler-webpack/src/config/handlePluginDefine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const handlePluginDefine = async ({
// enable options API by default
__VUE_OPTIONS_API__: JSON.stringify(true),
__VUE_PROD_DEVTOOLS__: JSON.stringify(app.env.isDebug),
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: JSON.stringify(false),
},
])

Expand Down

0 comments on commit c645d1a

Please sign in to comment.