Closed Aslemammad closed 3 years ago
Nice, does it already work for Vite?
@brillout Yes, for now!
👍 Let's check if it works with other frameworks. I believe there are some Vite specific code in the code though.
Nope! need to research more about and also test it myself! that's why it's not ready yet!
👌
YO YO @brillout, I think this is ready for review (not review exactly, I mean more refactor).
All tests are now passing :-). (Not on Windows nor MacOS though; no clue why 🤔.)
I'll continue reviewing tomorrow, and I'll dig about why the tests are not passing on Windows/MacOS. Confident I'll be able to merge tomorrow.
Alright, ready for merge.
@Aslemammad So I've refactored a bit and made it that the Vite plugin doesn't use unplugin anymore. We still use unplugin but only for Webpack. Unplugin just doesn't add any value for the Vite plugin. Any objection? Also let me know if I broke anything in my refactor?
Btw. the test are still failing on windows (I didn't check why), but let's merge first.
@brillout That was my idea exactly! Vite plugin API is already simple, so no need for unplugin (we may use it in the future) Let's merge this! then i'm going to refactor it for windows for sure!
💯
This PR tries to enable tool-agnosticism in telefunc.
It's up to @brillout to review, it's not ready & I don't think it's ready for a review.