-
Notifications
You must be signed in to change notification settings - Fork 105
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
Tao-VanJS commentedon May 19, 2024
@cqh963852, could you take a look at this issue?
Add missing jsx-runtime.js
cqh963852 commentedon May 24, 2024
The path to jsx-runtime.js is defined in package.json.
Could it be that esbuild is using an old specification for path lookup?Maybe this line should be adjusted
van/addons/van_jsx/package.json
Line 14 in fdffbbd
cqh963852 commentedon May 24, 2024
I checked the history, this should be a modification error
thednp commentedon Dec 24, 2024
@damienflament @cqh963852 please check out the:
Powered by vite-plugin-vanjs.
cqh963852 commentedon Feb 1, 2025
@thednp Hi, I have check the plugin
vite-plugin-vanjs
, I think this plugin brings a better practice than vanjs-jsx.@Tao-VanJS Please mark vanjs-jsx as deprecated.