Parsing error for .jsx
files in Node Modules in dev
#2086
-
Not sure if I'm just missing something, but it appears that the transform stage isn't performed in dev (or this parse error occurs before it gets to it) when using JSX files in node_modules. It appears to choke during JSX files work fine in the src folder. If I use precompiled JS of the Node Modules or do the production build everything works as expected. I can report an issue and provide a reproduction if needed. But was thinking this might be simpler than that. The use case is for Solid which does custom transformations on JSX that differ depending on target (client, server, hydration) similar to Svelte, so it is common to ship Thanks for any assistance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
This may be an issue with pre-bundling that needs to be fixed, but as a workaround, did you try excluding these dependencies? https://vitejs.dev/config/#optimizedeps-exclude |
Beta Was this translation helpful? Give feedback.
-
I think this should be fixed via 37a103f |
Beta Was this translation helpful? Give feedback.
-
2.0.2 fixed it! Thank you very much @yyx990803 ! |
Beta Was this translation helpful? Give feedback.
2.0.2 fixed it! Thank you very much @yyx990803 !