[Feature]: Support compiler options: managedPaths and unmanagedPaths
What problem does this feature solve?
This allows for the modification of the source code of the packages inside node_modules using yalc or by manual means. It is particularly useful for debugging self-developed libraries.
What does the proposed API of configuration look like?
Same as in the webpack:
Currently rspack will watch all files, including those inside "node_modules". And this should satisfy your request.
So I guess you want rspack to ignore certain changes in node_modules by supporting managedPath and unmanagedPath?
Currently rspack will watch all files, including those inside "node_modules". And this should satisfy your request.
So I guess you want rspack to ignore certain changes in node_modules by supporting managedPath and unmanagedPath?
Yes, watching all files inside node_modules is a heavy operation.
This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
maybe you should use https://rspack.dev/config/watch#watchoptionsignored.
maybe you should use https://rspack.dev/config/watch#watchoptionsignored.
Snapshot managing is not associated in any way with the watching. Currently as I know rspack will rebuild when any change occurs. Initially I created the issue because I thought that rspack doesn't rebuild when dependencies inside node_modules are changed, but it does.
The option managedPaths, unmanagedPaths should be added only when the rspack will stop applying changes from the node_modules directory.
This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!