Skip to content

zhl0791/rollup-react-library-template

Repository files navigation

rollup-react-library-template

This is a base template for Rollup. It demonstrates how to use rollup with React library.

Plugins

  • @rollup/plugin-json: Rollup plugin for JSON;
  • @rollup/plugin-node-resolve: For using third party modules in node_modules;
  • @rollup/plugin-commonjs: For CommonJS;
  • rollup-plugin-postcss-modules:For SCSS and css module;
  • rollup-plugin-typescript2: Rollup plugin for typescript;
  • rollup-plugin-dts: Roll-up .d.ts definition files;
  • rollup-plugin-terser: Minify generated es bundle.
  • ...

Visit https://github.com/rollup/awesome for more plugins.

development

Clone this repository, run npm run build or npm run watch.

About

Bundle react component library with Rollup.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published