van
van copied to clipboard
[vanjs-jsx] Add missing ./src/jsx-runtime.js
Hi !
I'm configuring Vite to transform JSX using vanjs-jsx.
It's a JavaScript project so I don't do configuration in the tsconfig.json file but in vite.config.js :
import { defineConfig } from 'vite'
export default defineConfig({
...
esbuild: {
jsx: 'automatic',
jsxImportSource: 'vanjs-jsx'
}
})
It's working fine using the development server. But when building, vanjs-jsx/jsx-runtime is not found.
Patching the package using Yarn by adding the missing file fix the issue.
Thanks.