egoist / tsup

The simplest and fastest way to bundle your TypeScript libraries.
https://tsup.egoist.dev
MIT License
9.29k stars 223 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 2 months ago

Has this problem been solved?~