-
-
Notifications
You must be signed in to change notification settings - Fork 738
Closed
Closed
Copy link
Description
System Info
System:
OS: macOS 26.0.1
CPU: (10) arm64 Apple M1 Max
Memory: 61.81 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.13.1 - /usr/local/node-v22.13.1/bin/node
Yarn: 4.10.3 - /opt/homebrew/bin/yarn
npm: 10.9.2 - /usr/local/node-v22.13.1/bin/npm
pnpm: 10.10.0 - /opt/homebrew/bin/pnpm
Browsers:
Chrome: 142.0.7444.60
Safari: 26.0.1
npmPackages:
@rspack/cli: ^1.5.6 => 1.6.0
@rspack/core: ^1.5.6 => 1.6.0
@rspack/plugin-react-refresh: ^1.5.1 => 1.5.2
Details
rspack config:
...
entry: {
main: './src/main/index.tsx',
library: {
import: './src/library/index.tsx',
library: {
type: 'var',
name: 'MyLibrary',
},
},
},
...
When the "entry" is set to "library", the HRM cannot function properly. Is there a solution to this problem?
Reproduce link
https://github.com/tclxshunquan-wang/rspack-hmr-reproduction
Reproduce Steps
1、yarn
2、yarn dev
3、Modify the codes of the main and library modules, and observe the operation of HRM.
Metadata
Metadata
Assignees
Labels
No labels