js_jsx-runtime.js?v=848ce2cb' does not provide an export named 'Fragment'
I built a component lib and bundling it with tsdown, this is my config.
My tsconfig :
Am i missing anything?

8 Replies
ig i should use tsup
Did you try to use
tsup-preset-solid
as in the official starter template for libs?
https://github.com/solidjs-community/solid-lib-starter/blob/main/tsup.config.tsGitHub
solid-lib-starter/tsup.config.ts at main · solidjs-community/solid...
SolidJS library starter template. Use it to create your own solid package. - solidjs-community/solid-lib-starter
i'll try tsup
not another package for this ðŸ˜
that tsupconfig itself looks so foreign and scary
nvm lemme try
i give up, cant there be a simple example
with TSUP


it works with this @Madaxen86
qwen ai to the rescue :0
Otherwise I would have recommended to clone the starter lib and copy&paste your src dir. It has all setup. And afaik you could just replace the tsup defineConfig with tsdown's and it should work.
it uses another package called tsup-preset-solid
so much mental gymnastics