HMR could be faster
See original GitHub issueI pulled out some stats on our webpack
https://ortastuff.s3.amazonaws.com/data/webpack_stats.json - which you can download, and open with http://webpack.github.io/analyse/
I don’t have too much internal understanding of webpack as my focus has mainly been on metro bundler.
We see most of the wait inside 92% chunk asset optimization
. So what can we learn from this?
We have 2 chunks, I expect this chunk (id: 1) is the storybooks code
We don’t want this to be re-created on an incremental build.
This second one is our app,
You can find the modules in here: http://webpack.github.io/analyse/#module/81
–
When you look at the data that gets sent on a hot update, it’s tiny:
It’s just taking a bunch of time to get there
Issue Analytics
- State:
- Created 6 years ago
- Comments:25 (25 by maintainers)
Top Results From Across the Web
HMR · Discussion #2384 · remix-run/remix - GitHub
Finally, usually HMR is more about hiding the slowness of front-end build tools than about maintaining client state on code changes. ESBuild is...
Read more >The HMR Diet Can Help You Lose Weight Fast—but Is It Safe ...
U.S. News and World Report ranked HMR the number one diet for fast weight loss. The company's simple 3+2+5 Healthy Solutions plan includes...
Read more >HMR API - Vite
Register a callback that will call when the module is no longer imported on the page. Compared to hot.dispose , this can be...
Read more >HMR Program Ranked #1 Best Fast Weight Loss Diet for 2021 ...
Using clinically proven behavior change techniques, HMR can help you lose a lot of weight while learning the lifestyle skills that matter ...
Read more >I Tried the HMR Diet and It Was Hard—But Not for the Reason ...
We'd written about the HMR diet before—it's consistently ranked number one for fast weight loss by U.S. News and World Reports.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Awesome – that example gist should help. I remember it being a bit of a headache to finally get working but once it was done I was like “hell yeah…” – 7-10 second build times down to around 1 - 2. It was pretty dramatic.
No we haven’t, definitely worth giving it a try though. I’ll do those and see if we see any improvements.