-
-
Notifications
You must be signed in to change notification settings - Fork 30
fix: support vite v3 #50
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
Conversation
I can confirm that this change fixes the issue I was having in the storybook preact example (#49). |
Hi @JoviDeCroock, vite 3 is close to being released out of beta soon, do you think you might have a chance to review this PR, to avoid users having problems with preact? |
Apologies, been really busy lately. Did y'all have a chance to test this already, I can make some time to test it out as well later tonight. We want it to work with both vite 2 and 3 so will test both, there must be a reason why we had thsi code |
Tested with both vite 2 as well as 3 worked fine! |
Thanks! |
Thank you very much for your work! |
* allow jsx import source to be configured * allow package to be installed via git * fix: support vite v3 (#50) * 2.3.0 (#53) * add named export to improve `"module": "nodenext"` compatibility (#48) * add named export to improve `"module": "nodenext"` compatibility * add proper types export * Update src/index.ts Co-authored-by: Jovi De Croock <decroockjovi@gmail.com> Co-authored-by: Jovi De Croock <decroockjovi@gmail.com> * Update package.json * remove "prepare" script --------- Co-authored-by: 翠 / green <green@sapphi.red> Co-authored-by: Jovi De Croock <decroockjovi@gmail.com> Co-authored-by: Volodymyr Zhdanov <wight554@gmail.com>
preact provides
exports
field andmodule
field so it worked without interop codes.This PR removes them because it was causing issues with Vite v3.
fixes #52
I tested with Vite (3.0.0-beta.1, 2.9.12) and preact (10.8.2, 10.7.0) with reproduction on #49.