-
-
Notifications
You must be signed in to change notification settings - Fork 560
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
Watch config file and auto restart on change #3463
Comments
related to webpack/webpack-cli#15 |
Yes, this is still in the plans, but unfortunately it's a bit difficult to implement it correctly, vite just restarts everything and not invalidate the dependency graph (for example if you have multi compiler mode and change only one configuration file, you don't need to rebuild all compilations), it's not quite right, but most likely enough for the needs of most. The question is - do we want the correct implementation or just implement this and say we support it, to be honest, the configurations don't change often, so it wasn't a priority |
On the topic it would be amazing if we could provide a list of files to the watch config and cause a restart of the dev server if they change like .env files for example |
The behavior is the same with webpack. |
What problem does this feature solve?
When using
rspack serve
, changes to config file can automatically trigger a restart of dev server (likevite dev
).What does the proposed API of configuration look like?
N/A
The text was updated successfully, but these errors were encountered: