You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(webpack/css-extract): CSS HMR not working (#456)
<!--
Thank you for submitting a pull request!
We appreciate the time and effort you have invested in making these
changes. Please ensure that you provide enough information to allow
others to review your pull request.
Upon submission, your pull request will be automatically assigned with
reviewers.
If you want to learn more about contributing to this project, please
visit:
https://github.com/lynx-family/lynx-stack/blob/main/CONTRIBUTING.md.
-->
## Summary
<!-- Can you explain the reasoning behind implementing this change? What
problem or issue does this pull request resolve? -->
We do not use `chunkLoading: 'require'` in Rspack after #400. So we need
to change the CSS hot update runtime, too.
This patch avoid using the `compilation.hooks.runtimeModule`, but use
the standard `RuntimeModule`.
Also fix CSS HMR not working when using nested entry.
<!-- It would be helpful if you could provide any relevant context, such
as GitHub issues or related discussions. -->
## Checklist
<!--- Check and mark with an "x" -->
- [x] Tests updated (or not required).
- [ ] Documentation updated (or **not required**).
0 commit comments