Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: should not fallback to liveReload when liveReload is disabled #2167

Closed
9aoy opened this issue Apr 22, 2024 · 0 comments
Closed

[Feature]: should not fallback to liveReload when liveReload is disabled #2167

9aoy opened this issue Apr 22, 2024 · 0 comments

Comments

@9aoy
Copy link
Collaborator

9aoy commented Apr 22, 2024

What problem does this feature solve?

Currently, if HMR cannot be used in certain scenarios, it will automatically fallback to liveReload in Rsbuild.

But we don't want to fallback to liveReload when liveReload is disabled, which is useful for users to debug some hmr errors.

What does the proposed API look like?

When hmr is broken, page reloading will not be triggered. The configuration is as follows:

export default {
  dev: {
    hmr:true,
    liveReload: false,
  },
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant