-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Distributed packages contain jsx code in js files #39
Comments
Hey @tomas-phillips-95 can you provide a minimal reproduction repo? |
Here is an example, I'm using the 1.1.0
|
Hey @marouanechoukri31, From your vite repo, I had to add to your optimizeDeps: {
force: true,
+ include: ['@rn-primitives/slot', '@rn-primitives/avatar'],
esbuildOptions: {
loader: {
'.js': 'jsx',
'.mjs': 'jsx',
},
},
}, @tomas-phillips-95 Are you using something else than vite? If so can you provide a minimal reproduction repo? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some versions of packages above
1.0.4
containjsx
code in the transpiledjs
files (@rn-primitives/select
being one of them). As a result the file cannot be parsed.The text was updated successfully, but these errors were encountered: