Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to to use this with rollup? #1347

Closed
sidwebworks opened this issue Sep 10, 2021 · 5 comments
Closed

How to to use this with rollup? #1347

sidwebworks opened this issue Sep 10, 2021 · 5 comments

Comments

@sidwebworks
Copy link

Hi, I wanted to use react-cosmos in my custom component library, I have a custom setup using Rollup, Esbuild and Typescript.

@tsanyqudsi
Copy link

you can see my vite example on https://github.com/viveljs/viveljs/tree/main/workspace/cosmos. Vite use rollup.

@supervanya
Copy link

@tsanyqudsi I see you switched to using StoryBook instead of cosmos, any reason why? I am considering wether to get cosmos to work with vite and rollup or to switch to StoryBook?

@tsanyqudsi
Copy link

@supervanya to be honest I like Cosmos more, But Storybook has https://github.com/storybookjs/builder-vite.

I will rethink my decision when Cosmos reach v 6.

@ovidiuch
Copy link
Member

React Cosmos v6 is here and it comes with a brand new Vite plugin. Check out the migration guide to try it out!

@ovidiuch
Copy link
Member

@sidwebworks @tsanyqudsi @supervanya FYI you can use the new Vite plugin by following the updated docs and there's also a new guide for hooking up Cosmos with any bundler here.

Closing this but I'm open to any questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants