Skip to content

Commit

Permalink
Avoid vue warning in dev mode (#29188)
Browse files Browse the repository at this point in the history
`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)
  • Loading branch information
silverwind authored and earl-warren committed Feb 17, 2024
1 parent 6f159f4 commit 3adfb6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export default {
new DefinePlugin({
__VUE_OPTIONS_API__: true, // at the moment, many Vue components still use the Vue Options API
__VUE_PROD_DEVTOOLS__: false, // do not enable devtools support in production
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false, // https://github.com/vuejs/vue-cli/pull/7443
}),
new VueLoaderPlugin(),
new MiniCssExtractPlugin({
Expand Down

0 comments on commit 3adfb6c

Please sign in to comment.