-
Notifications
You must be signed in to change notification settings - Fork 120
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
[Bug]: When modifying files (occasionally) or rsbuild.config.ts (must be), the generated product has problems #2571
Comments
Hello @jameszhang2020. Please provide a reproduction repository or online demo. For background, see Why reproductions are required. Thanks ❤️ |
Hi, can you provide a minimal reproduction for this? |
@chenjiahan https://github.com/TD-jameszhang/rsbuild-demo.git
Maybe, it need to fix this problem first before I can reproduce the abnormal phenomenon reported first. |
This is a bug of Rspack and has been fixed, see: web-infra-dev/rspack#6740 You can upgrade Rsbuild to v0.7.7 and the live reload / HMR should work |
This is a devDependency, it will not affect your project, so you can just ignore it |
Can you try the latest Rsbuild version and check if the problem has been resolved? |
OK, got it. |
@chenjiahan bumping this. |
I'll try playing with it too and see if I can reproduce anything |
any update regarding this issue? |
Have you tried the latest version of rsbuild |
Version
Details
I have shared multiple packages in the module federation host, and the configuration is as follows.
On first startup, it will generate a set of configurations that can be found in the entry file (index.js), like this:
However, when I edited a ts file or rsbuild.config.ts file, saved it, and then checked it again, I found that it became empty, as shown below:
Other remotes will depend on these shared packages, so this initializeSharingData.scopeToSharingDataMapping is very important
Reproduce link
N/A
Reproduce Steps
__webpack_require__.initializeSharingData
in the index.js file generated after packaging is different before and after (as described above). If this variable has a normal value, our project can work normally, otherwise it will not work.The text was updated successfully, but these errors were encountered: