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
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.
you can check this: https://github.com/solidjs-community/rollup-preset-solid
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...