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

Modification of watching logic. #21

Merged
merged 3 commits into from
Nov 5, 2024
Merged

Modification of watching logic. #21

merged 3 commits into from
Nov 5, 2024

Conversation

darkstarx
Copy link
Contributor

Issue #20

Changes the logic of applying onBeforeReload handler to a batch of events.
Due to debouncing the function _reloadCode can receive a batch of events. When onBeforeReload discards some of them, all the batch is discarded and hot-reloading is skipped. The PR changes this logic: hot-reloading is skipped only if all of the events are discarded.

Supports excludedPaths.
When watchDependencies is true, the HotReloader starts watching all dependencies including the entire project. To prevent watching some of relative dependencies or entire project, this PR proposes the excludedPaths argument.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@sebthom sebthom merged commit 85e738c into vegardit:main Nov 5, 2024
9 checks passed
@sebthom
Copy link
Member

sebthom commented Nov 5, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants