web-infra-dev / rspack

The fast Rust-based web bundler with webpack-compatible API 🦀️
https://rspack.dev
MIT License
9.25k stars 538 forks source link

[Feat]: HMR is not implemented for module chunk format yet #7429

Open lzxb opened 1 month ago

lzxb commented 1 month ago

System Info

System: OS: macOS 13.2.1 CPU: (8) arm64 Apple M1 Memory: 54.69 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 20.13.1 - ~/.nvm/versions/node/v20.13.1/bin/node Yarn: 1.22.22 - ~/.nvm/versions/node/v20.13.1/bin/yarn npm: 10.5.2 - ~/.nvm/versions/node/v20.13.1/bin/npm pnpm: 8.15.8 - ~/.nvm/versions/node/v20.13.1/bin/pnpm bun: 1.1.13 - ~/.bun/bin/bun Browsers: Safari: 16.3 npmPackages: @rspack/core: 1.0.0-beta.2 => 1.0.0-beta.2

Details

Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues Message: internal error: entered unreachable code: HMR is not implemented for module chunk format yet Location: crates/rspack_plugin_runtime/src/module_chunk_format.rs:104

Reproduce link

https://github.com/lzxb/ssr-rspack-vue2

Reproduce Steps

  1. pnpm i
  2. pnpm dev
  3. Modify a file
LingyuCoder commented 1 month ago

Currently output.chunkFormat: module does not support HMR, this is aligned with webpack. Perhaps we can support it in the future

lzxb commented 1 month ago
image

Verified, production available