van icon indicating copy to clipboard operation
van copied to clipboard

[vanjs-jsx] Add missing ./src/jsx-runtime.js

Open damienflament opened this issue 9 months ago • 3 comments

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.

damienflament avatar May 19 '24 18:05 damienflament