Closed Joepocalyptic closed 10 months ago
Should be all set now. Sorry for the trouble; this is pretty much my first time contributing to an external project. 😅
Don't worry, these are mainly questions to understand what has been done, the changes were minor fixes, nothing to worry about since the project was building and running
I've changed the base branch, since this contains a breaking change and can't be released as a minor version. I have other plans for the major release as I said in the linked issue and this will be released there too.
Perfect, thank you!
Didn't know about this project, this is very interesting and could be good for the next major release. Instead of having @tsparticles/vue2 @tsparticles/vue3 packages, only @tsparticles/vue package could exist.
I managed to write a proof-of-concept with this PR as a base using vue-demi
(I've been meaning to experiment with it regardless): https://github.com/Joepocalyptic/vue-particles/tree/main/packages/vue-particles
Apparently vue-demi
works by adjusting which functions to use based on the user's environment; what this means is that you actually can't precompile the SFC since it needs to go straight through the user's build pipeline (e.g. Vite).
I replaced the Vite bundler with unjs/unbuild configured to simply copy the Vue SFC in-place. This is actually how most Vue component libraries work nowadays, regardless.
Really nice, if you want to submit a PR targeting the dev
branch, you're welcome to do it, and thanks for the suggestion anyway.
Fixes #30.
Also cleaned up the two examples to remove dead code and use Nuxt best practices.