Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

navamara55/example-rollup-react-component-npm-package

 
 

Repository files navigation

Greenkeeper badge

Build Statusnpmnpm

ExampleReact component "library" usingrollup that is published tonpm.

rollup andwebpack

There are a lot of articles that comparerollup andwebpack (likethis orthis orthis orthis).

The general point is

webpack is generally a better fit for applications, androllup is generally a better fit for libraries1

So what is this project?

I've never usedrollup before - hell, I'vebarely usedwebpack before.

This was mostly to see how easy / difficult it was to create aReact component package usingrollup (aka "proof-of-concept").

My requirements for this package were

  1. Usebabel
  2. Usesemantic-release
  3. Usesass
  4. Supportumd andes modules
  5. Usestorybook
  6. Make the exported components really simple

My general thoughts

Footnotes


[8]ページ先頭

©2009-2025 Movatter.jp