How to use tsup to compile my tsx file
Open
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 275
- PR merge metrics
- No merged PRs in 30d
Description
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 配置
,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
}
})
Contributor guide
Assessment
This issue has not been assessed yet.