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]: request to add watchOptions.aggregaTimeOut #6356

Closed
pushkargupta9807 opened this issue Apr 24, 2024 · 2 comments
Closed

[Feature]: request to add watchOptions.aggregaTimeOut #6356

pushkargupta9807 opened this issue Apr 24, 2024 · 2 comments
Labels
feat New feature or request pr welcome

Comments

@pushkargupta9807
Copy link

pushkargupta9807 commented Apr 24, 2024

What problem does this feature solve?

This would be benefitting developer productivity in scenarios where they are modifying multiple files at once, and want to recompile and reload once for all of them .

Fir instance we have a scenario where modifying/saving a file generates an artefact in a particular directory which is also watched . So we want to trigger re-compile after a certain timeout , say like 300ms so as to ensure that artefact is generated.

https://webpack.js.org/configuration/watch/#watchoptionsaggregatetimeout

What does the proposed API of configuration look like?

Here is the webpack implementation for it :
https://webpack.js.org/configuration/watch/#watchoptionsaggregatetimeout

@pushkargupta9807 pushkargupta9807 added feat New feature or request pending triage The issue/PR is currently untouched. labels Apr 24, 2024
@LingyuCoder LingyuCoder added pr welcome and removed pending triage The issue/PR is currently untouched. labels May 30, 2024
@wxiaoyun
Copy link
Contributor

It seems this feature is already implemented by importing WatchPack?

There is even a performance PR regarding this: https://github.com/web-infra-dev/rspack/pull/4724/files

@h-a-n-a h-a-n-a closed this as completed Jun 26, 2024
@h-a-n-a
Copy link
Contributor

h-a-n-a commented Jun 26, 2024

Closed as finished

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request pr welcome
Projects
None yet
Development

No branches or pull requests

4 participants