question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HMR could be faster

See original GitHub issue

I 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

screen shot 2017-08-01 at 15 26 56

We don’t want this to be re-created on an incremental build.

This second one is our app,

screen shot 2017-08-01 at 15 31 42

You can find the modules in here: http://webpack.github.io/analyse/#module/81

screen shot 2017-08-01 at 15 31 42

When you look at the data that gets sent on a hot update, it’s tiny:

screen shot 2017-08-01 at 15 33 06

It’s just taking a bunch of time to get there

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:25 (25 by maintainers)

github_iconTop GitHub Comments

1reaction
damassicommented, Sep 6, 2017

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.

1reaction
l2succescommented, Sep 6, 2017

No we haven’t, definitely worth giving it a try though. I’ll do those and see if we see any improvements.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found