Skip to content

Commit 3adfb6c

Browse files
silverwindearl-warren
authored andcommitted
Avoid vue warning in dev mode (#29188)
`vue` currently outputs a warning for this undefined variable during development, which is apparently caused by a bug in `vue-cli`. Workaround by setting this variable. Ref: vuejs/vue-cli#7443 Ref: https://stackoverflow.com/a/77765007/808699 (cherry picked from commit e9a1ffba2c294f74d985870e9b7b5b07e9000857)
1 parent 6f159f4 commit 3adfb6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webpack.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ export default {
176176
new DefinePlugin({
177177
__VUE_OPTIONS_API__: true, // at the moment, many Vue components still use the Vue Options API
178178
__VUE_PROD_DEVTOOLS__: false, // do not enable devtools support in production
179+
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false, // https://github.com/vuejs/vue-cli/pull/7443
179180
}),
180181
new VueLoaderPlugin(),
181182
new MiniCssExtractPlugin({

0 commit comments

Comments
 (0)