Describe
The vite:dep-scan:transform:js-glob plugin asserts that the return result is js. But the vite-plugin-solid plugin sets jsx: 'preserve'.
Reproduction
https://github.com/zhylmzr/vite-plugin-solid-bug
Workarounds
- move
import.meta.glob to a single js/ts file.
- or change
transform.jsx to:
// vite.config.ts
plugins: [
{
name: 'fix-solid-deps-scan',
enforce: 'post',
config() {
return {
optimizeDeps: {
rolldownOptions: {
transform: {
jsx: {
importSource: 'solid-js/h',
},
},
},
},
}
},
},
]
Describe
The vite:dep-scan:transform:js-glob plugin asserts that the return result is
js. But the vite-plugin-solid plugin setsjsx: 'preserve'.Reproduction
https://github.com/zhylmzr/vite-plugin-solid-bug
Workarounds
import.meta.globto a singlejs/tsfile.transform.jsxto: