S
SolidJS10mo ago
veeque

How to make a library with Vite's library mode?

I'm in a monorepo scenario and want to make a component library for the shared UI. Since there's not template (although there should really be one, like Svelte's package), how can I go about configuring the newly-made Vite project to export my components?
2 Replies
lxsmnsyc
lxsmnsyc10mo ago
We don't actually recommend using Vite for building packages. Not sure how Svelte + Vite for library is done but for Solid, multiple build output is required.
lxsmnsyc
lxsmnsyc10mo ago
GitHub
GitHub - solidjs-community/rollup-preset-solid: A small opinionated...
A small opinionated preset for rollup to bundle your solid libraries with rollup. - GitHub - solidjs-community/rollup-preset-solid: A small opinionated preset for rollup to bundle your solid librar...
Want results from more Discord servers?
Add your server