egoist / egoist/tsup

How to use tsup to compile my tsx file

Open
#916 1 comment 0 reactions 0 assignees View on GitHub
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 配置
![image](https://github.com/egoist/tsup/assets/58264818/b7446462-40d9-4d52-abf7-bee862d105ec),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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.