microbundle icon indicating copy to clipboard operation
microbundle copied to clipboard

Add example folder

Open horacioh opened this issue 6 years ago • 4 comments

add an example folder to share project configurations using microbundle.

the example I added is using:

  • React
  • Typescript
  • Storybook
  • Styled systems
  • styled components

hopefully this will be helpful for new devs :)

horacioh avatar Mar 29 '19 10:03 horacioh

Thanks for the PR, but what problem are you trying to solve here? Storybook is still using webpack to build it's things. So really all you're showing here is that microbundle can be used alongside Storybook. What would be cool, would be if Storybook was to consume the microbundle dev build. But even then this is a bundler...

Maybe this can be an example you could maintain in your own personal land, and we can ask @developit if we could reference it in the readme or something.

All in all, the maintainers here wouldn't want to now maintain examples, and test that all the examples still work etc...

maraisr avatar Apr 02 '19 03:04 maraisr

thanks for the response @maraisr !

my first approach was what you said: https://github.com/developit/microbundle/pull/365. I think this is cleaner for the proyect too.

I'm happy to reopen/update/delete this PRs. I found examples really useful for newcomers to the project, and check how the setup (specially the setup) is done is really helpful.

Hope we can give the community a way to publish more examples as this one!

Let me know what you think 👍

horacioh avatar Apr 02 '19 12:04 horacioh

I'd love a microbundle-examples repo.

developit avatar May 24 '19 01:05 developit

Storybook is still using webpack to build it's things. So really all you're showing here is that microbundle can be used alongside Storybook. What would be cool, would be if Storybook was to consume the microbundle dev build.

Storybook now has a vite builder, which can replace webpack. Vite is mostly based on Rollup, with some esbuild sprinkled in where possible.

I wonder if Microbundle could be implemented on top of vite?

devinrhode2 avatar Mar 29 '23 13:03 devinrhode2