egoist / tsup

The simplest and fastest way to bundle your TypeScript libraries.
https://tsup.egoist.dev
MIT License
8.99k stars 217 forks source link

How to use tsup to compile my tsx file #916

Open jiefei666 opened 1 year ago

jiefei666 commented 1 year ago

I wrote a component using Vue3 tsx, and now I need to package it with tsup. How to compile the input tsx into Vue's h function,我尝试 在 tsconfig.json 配置 image,But my jsxImportSource p cannot run correctly if it is configured as' vue '. How should I configure it

import { defineComponent } from 'vue'

export default defineComponent({ setup() { return () => <>

123
</>

} })

Upvote & Fund

Fund with Polar

Lisheri commented 4 days ago

Has this problem been solved?~