rspack icon indicating copy to clipboard operation
rspack copied to clipboard

[Feature]: request to add watchOptions.aggregaTimeOut

Open pushkargupta9807 opened this issue 1 year ago • 0 comments

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 avatar Apr 24 '24 17:04 pushkargupta9807