Warnings only work during development, so this config is ignored in production mode. #7806
Unanswered
lovetingyuan
asked this question in
Help/Questions
Replies: 1 comment
-
core/packages/runtime-core/src/warning.ts Line 34 in 98f1934 You can try to clone the core repository, comment out this line of code, and compile a vue yourself. You can use the vue you built yourself, or you can research and patch the official vue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
app.config.warnHandler
does not work in production mode.I think Vue should provide an option like "enableWarning" to force print warnings in production.
It is helpful for debugging in production mode, such as using vite preview.
Beta Was this translation helpful? Give feedback.
All reactions