Skip to content

HMR not working correctly for workspaces project #20794

Open
@ezand

Description

@ezand

What version of Bun is running?

1.2.17+282dda62c

What platform is your computer?

Darwin 24.5.0 arm64 arm

What steps can reproduce the bug?

GitHub repo with example setup and steps: https://github.com/ezand/bun-hmr-issue

  1. Create a workspaces project with one package and one React application.
  2. Run the app, bun dev
  3. Make multiple changes to the React component in the package. It will reload correctly.
  4. Make changes to the React component in the app. It will reload correctly.
  5. Make another change to the React component in the package. It will NOT reload.

Ie. after hot-reloading the app, hot-reloading the component in packages no longer works.

What is the expected behavior?

I would expect the hot-reload to continue working even after changes in the app is reloaded.

What do you see instead?

After hot-reloading the app, changes in the package is no longer reloaded.

Additional information

There's a screencast in the GitHub repo showing the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bake:devhot-reloading dev server for client+server applicationsbugSomething isn't workingbun --hot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions