Description
Hi, I'm excited to see this RFC because I've been thinking about a solution to this problem for about 3 years now. I have now implemented an unplugin plugin based on the 5th solution mentioned in RFC-v1. Currently, I have only implemented the Vite plugin.
Before implementing this solution, I extensively used solutions 2 and 3. Each of them has different drawbacks, and from my current understanding, solution 5 is a more flexible solution, allowing both sub-packages and app packages to have their own choices.
This solution is still in its early stages, and most of the utility methods are borrowed from Vite. If this solution succeeds, I believe integrating this part into Vite will be very easy. I will continue to use this plugin extensively in my monorepo to observe its feasibility and acceptability.
Repository: unplugin-monorepo