Skip to content

Commit e9a1ffb

Browse files
authored
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
1 parent 8f9c9d3 commit e9a1ffb

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
@@ -172,6 +172,7 @@ export default {
172172
new DefinePlugin({
173173
__VUE_OPTIONS_API__: true, // at the moment, many Vue components still use the Vue Options API
174174
__VUE_PROD_DEVTOOLS__: false, // do not enable devtools support in production
175+
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false, // https://github.com/vuejs/vue-cli/pull/7443
175176
}),
176177
new VueLoaderPlugin(),
177178
new MiniCssExtractPlugin({

0 commit comments

Comments
 (0)