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
Doesn't work with Vite 3 #52
Comments
This might be because of using the wrong entry in the export map, we only use import/export in our esm-bundles. i.e. From the error message it looks like it's taking I wonder if the issue resides in using the |
Thanks @JoviDeCroock for the answer. The vite-plugin-ssr test suite tests a lot of integration, and only The error, and |
Yes, so I did run that and it looks like it's a transitive import issue when the jsx import is included so this issue could be located in the This block of code generates the require I could find in your repro
It looks like the legacy import is used rather than the new one for reference, compare it to the |
Yes exactly that's the problematic |
As far as I can tell this is an issue with |
Apologies that was accidental while mentioning this issue in the PR |
Describe the bug
Preact doesn't work with Vite 3 (
3.0.0-alpha.9
).To Reproduce
See https://github.com/brillout/preact-vite3.
CodeSandbox: https://codesandbox.io/s/github/brillout/preact-vite3
Expected behavior
Preact seems to inject a
require
statement which it shouldn't because Vite 3 is now ESM by default.The text was updated successfully, but these errors were encountered: