Skip to content

import.meta.hot.accept() in production build #643

Discussion options

You must be logged in to vote

It's only ejected if Vite's config.isProduction is true.

Which Vite sets to true when process.env.NODE_ENV === 'production'.

So make sure to set NODE_ENV to 'production'.

Replies: 1 comment

Comment options

brillout
Feb 11, 2023
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by brillout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant