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

HMR is extremely slow when using module-federation/enhanced with rspack #28485

Open
1 of 4 tasks
ReinGomezWP opened this issue Oct 17, 2024 · 1 comment
Open
1 of 4 tasks
Assignees
Labels
blocked: repro needed scope: module federation Issues related to module federation support type: bug

Comments

@ReinGomezWP
Copy link

Current Behavior

Updated to the latest version of workspace and converted our rspack application into a host application.
However the HMR started getting really slow. The host application has no remotes whatsoever.
It used to take less than a 1sec for HMR to reflect the changes, but now it takes close to 10sec

Expected Behavior

HMR should be the same as it was when it was a standalone rspack application since the host application has no remotes.

GitHub Repo

No response

Steps to Reproduce

  1. Create an rspack application
  2. Add the module-federation configurations
  3. Run in dev-server and modify application to trigger HMR

Nx Report

Node : 19.5.0
OS : darwin-arm64
Native Target : aarch64-macos
npm : 10.5.0

nx : 20.0.1
@nx/js : 20.0.1
@nx/jest : 20.0.1
@nx/eslint : 19.2.3
@nx/workspace : 20.0.1
@nx/cypress : 19.2.3
@nx/devkit : 20.0.1
@nx/eslint-plugin : 20.0.1
@nx/playwright : 20.0.1
@nx/react : 20.0.1
@nx/rspack : 20.0.1
@nx/storybook : 19.2.3
@nx/vite : 20.0.1
@nx/web : 20.0.1
@nx/webpack : 20.0.1
nx-cloud : 19.1.0
typescript : 5.5.4

The following packages should match the installed version of nx

Failure Logs

No response

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@Coly010 Coly010 self-assigned this Oct 17, 2024
@Coly010 Coly010 added the scope: module federation Issues related to module federation support label Oct 17, 2024
@Coly010
Copy link
Contributor

Coly010 commented Oct 17, 2024

I can't reproduce this, can you provide a repo with a minimal reproduction of the slowness so that I can investigate further?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked: repro needed scope: module federation Issues related to module federation support type: bug
Projects
None yet
Development

No branches or pull requests

2 participants