You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use vite-plugin-solid in a library vite config
even when ssr = true, It still uses solid/web template function for the jsx like this which is only available in the client package
As you can see, this is the output of the cjs bundle, built using this vite config
This is ofcourse a jsx transformation error, jsx should be transformed to appropriate code for cjs and esm bundles, so they can work in ssr and browser modes perfectly
When you use vite-plugin-solid in a library vite config
even when ssr = true, It still uses solid/web template function for the jsx like this which is only available in the client package
As you can see, this is the output of the cjs bundle, built using this vite config
This is ofcourse a jsx transformation error, jsx should be transformed to appropriate code for cjs and esm bundles, so they can work in ssr and browser modes perfectly
@ryansolid This issue prevents you from building a library that contains JSX when using vite-plugin-solid, The only fix is to use solid-tsup-preset
The text was updated successfully, but these errors were encountered: