Advice on building component library that’s easily consumable by ESM, Commonjs AND non-react apps?

This page summarizes the projects mentioned and recommended in the original post on

Our great sponsors
  • Zigi - Delete the most useless function ever: context switching.
  • Scout APM - Truly a developer’s best friend
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • Sonar - Write Clean JavaScript Code. Always.
  • redux

    Predictable state container for JavaScript apps

    Redux core uses plain Rollup, and outputs a couple different bundle files. It has an unpublished TS conversion on master, and the current builds are on the 4.x branch. See the rollup.config.js file on both branches.

  • react-redux

    Official React bindings for Redux

    React-Redux also uses Rollup, but just outputs individual Babel-transformed files. master is a mostly-complete TS conversion that's in preparation for an upcoming v8 release, 7.x is the current live version. Again, see rollup.config.js.

  • Zigi

    Delete the most useless function ever: context switching.. Zigi monitors Jira and GitHub updates, pings you when PRs need approval and lets you take fast actions - all directly from Slack! Plus it reduces cycle time by up to 75%.

  • redux-toolkit

    The official, opinionated, batteries-included toolset for efficient Redux development

    Redux Toolkit uses a custom combination of ESBuild + TypeScript, outputs numerous different build formats (CJS/ESM/UMD, each with variations), and also has multiple entry points. See scripts/build.ts for the build logic and a list of output formats.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts