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

How do you set debounce time for Rollup's file watcher? #3527

Closed
2 of 4 tasks
jakobrosenberg opened this issue May 2, 2020 · 3 comments · Fixed by #3502
Closed
2 of 4 tasks

How do you set debounce time for Rollup's file watcher? #3527

jakobrosenberg opened this issue May 2, 2020 · 3 comments · Fixed by #3502

Comments

@jakobrosenberg
Copy link

Documentation Is:

  • Missing
  • Needed
  • Confusing
  • Not Sure?

Please Explain in Detail...

I often see double builds from rollup when updating multiple files. It would be helpful if the documentation provided information on how to increase the debounce time.

Your Proposal for Changes

Add debounce info to the documentation.

@lukastaegert
Copy link
Member

#3502 Will give you the configuration you want

@jakobrosenberg
Copy link
Author

Thanks @lukastaegert.

I've tried out the v2.9.0, but it seems I have to set delayBuild to 2000+ ms for it to have any effect. The two file changes I'm trying to debounce are ~15-20 ms apart.

@lukastaegert
Copy link
Member

Interesting. That should have been debounced even by the initial delay of 200ms. Would be interesting if you could set up some kind of repro, e.g. a simple Rollup build and an additional script that modifies two files similar to what is happening for you. Note that there is one file which is not debounced at the moment which is the rollup config file.

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

Successfully merging a pull request may close this issue.

2 participants