webpack-hot-client
webpack-hot-client copied to clipboard
fix(index): correctly pass args to `stats.toJson` and cache `stats`
This PR contains a:
- [x] bugfix
- [ ] new feature
- [x] code refactor
- [ ] test update
- [ ] typo fix
- [ ] metadata update
Motivation / Use-Case
options.statswas not used (it was overwritten)- cached results of heavy
stats.toJson
Breaking Changes
none
Additional Info
none
@michael-ciniawsky what is the status of this PR?
This code is merged in https://github.com/hedgepigdaniel/webpack-hmr-client
This PR is really valuable and allows to save around 1s on hot reload in large projects. @shellscape @michael-ciniawsky what needs to be done to merge it?