Creating a react library, why bundle to ESM?

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

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • Microbundle

    📦 Zero-configuration bundler for tiny modules.

    I would recommend starting by using https://github.com/developit/microbundle , as it has pretty good default behavior for generating library output.

  • CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  • react-bootstrap

    Bootstrap components built with React

    Huh. Looking at the build script for react-bootstrap on the bs4-dev branch, they are using Webpack... but it looks like it's just to build the UMD bundles like https://unpkg.com/browse/react-bootstrap@2.0.3/dist/react-bootstrap.js . The CJS/ESM output is generated by just running Babel directly on the source files and outputting them individually.

  • react-menu

    React component for building accessible menu, dropdown, submenu, context menu, and more.

    You could have a look what I'm shipping for my library https://github.com/szhsin/react-menu/tree/master/dist

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

  • micro-ts , a minimalist template to build packages with TypeScript

    3 projects | /r/Frontend | 14 Feb 2023
  • How do I properly learn Typescript?

    2 projects | /r/typescript | 30 Mar 2022
  • Microbundle is not enough

    2 projects | dev.to | 14 Feb 2022
  • I want to create a component library.

    2 projects | /r/reactjs | 13 Oct 2021
  • I created a template for React packages that are very easy to publish to NPM

    3 projects | /r/reactjs | 19 Aug 2021