[Bug]: When there are multiple entrances, there is a hot update error #10075
-
System InfoSystem: DetailsReproduce linkhttps://github.com/lzxb/rspack-hot-error Reproduce StepsRspack projectSetupInstall the dependencies: pnpm install Get startedStart the dev server: pnpm run dev Build the app for production: pnpm run build |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 1 reply
-
Hello, is there a plan to handle this issue? Or is there any temporary patching method? |
Beta Was this translation helpful? Give feedback.
-
@lzxb it is not a bug, it is how multiple entries work, your configuration is wrong and no need to patch something The answer is here - webpack/webpack-dev-server#5443 (comment) @chenjiahan I think you can close this issue |
Beta Was this translation helpful? Give feedback.
-
@alexander-akait I'm using Rspack's entry and externals to build an importmap-based application. Each entry compiles into an ESM module, and the externals configuration links different exported modules together. This serves as the foundation for building large-scale micro-frontend applications based on ESM. |
Beta Was this translation helpful? Give feedback.
-
This is the simplest example of building an ESM micro-frontend application. |
Beta Was this translation helpful? Give feedback.
-
I created a project at https://github.com/esmnext/esmx and planned to implement it, but got stuck on hot updates for multiple entry points. |
Beta Was this translation helpful? Give feedback.
-
@lzxb Did you read my comments how multiple entries work? You can't use multiple runtimes on the same page |
Beta Was this translation helpful? Give feedback.
-
You mix libraries and applications,
|
Beta Was this translation helpful? Give feedback.
@lzxb it is not a bug, it is how multiple entries work, your configuration is wrong and no need to patch something
The answer is here - webpack/webpack-dev-server#5443 (comment)
@chenjiahan I think you can close this issue