Skip to content

[Bug]: Using sirv will cause the rsdoctor client HMR to fail #694

@easy1090

Description

Version

@rsdoctor/* @0.4.12 and change the server-static to sirv.

Details

When change the server-static to sirv.

This affects our development, and we can't develop it with the help of hmr. After hmr, the hash changed resources will failed to be fetch.

Image

Reproduce link

Just use the rsdoctor repo.

Reproduce Steps

  1. @rsdoctor/client & @rsdoctor/sdk change the server-static to sirv
  2. pnpm i
  3. Run pnpm run dev on packages/components and run pnpm run start on packages/client.
  4. Run pnpm run start:analysis on examples/modern-minimal
  5. change some code on components to reduce the hmr.
  6. reload the examples's rsdoctor report page, will find the website crash.

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions