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

Output hot module logics on demand #185

Merged
merged 2 commits into from
Dec 4, 2024
Merged

Conversation

xboy2012
Copy link
Contributor

According to the webpack docs https://webpack.js.org/api/loaders/#thishot

we can know if HMR is enabled during COMPILE PHASE.

The current code increase unnecessary codes in production. ( Hot Module Reload is never enabled in production)

Hope this little change may help generating smaller output codes.

I also found that refs variable is never used, so it could be removed safely.

@dazlious dazlious requested a review from koistya August 9, 2021 21:06
@dazlious dazlious merged commit f87ccc3 into kriasoft:main Dec 4, 2024
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.

3 participants