You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
About "#consistent-components-exports", exporting constant or something in TSX or JSX files is a very common scene. I know that this will cause react refresh abnormality, but I may not want to see this annoying Warning
Suggested solution
provide a configuration that removes the prompt: react({ refreshWarning: false})
hot.invalidate that invalidate HMR is builtin in core as a warning. And I don't really want for people to be easy to mess up with HMR and then get the sensation that Vite has bad HMR. If you don't care about this, I see two options for you:
Don't use this plugin and let esbuild handles everything. This will cause full-reload for every JS change
Provide a custom logger in the Vite config and use the fallback handler for everything expect the "annoying" warning
Description
About "#consistent-components-exports", exporting constant or something in TSX or JSX files is a very common scene. I know that this will cause react refresh abnormality, but I may not want to see this annoying Warning
Suggested solution
provide a configuration that removes the prompt:
react({ refreshWarning: false})
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: