Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: use __DEV__ with @hmr #59

Merged
merged 1 commit into from
May 6, 2020
Merged

docs: use __DEV__ with @hmr #59

merged 1 commit into from
May 6, 2020

Conversation

posva
Copy link
Contributor

@posva posva commented May 6, 2020

I noticed the HMR code added by the user is not removed while building, leading to errors because the hot module that is imported becomes an empty object.

I don't know if it's possible to remove these parts of code, but using the __DEV__ global property also works

@posva posva changed the title docs: use __DEV__ with @hmr docs: use __DEV__ with @hmr May 6, 2020
@yyx990803 yyx990803 merged commit 2048b65 into vitejs:master May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants