π Building a Modern npm Package with Rollup: A Deep Dive into CJS & ESM Configurations
Creating a versatile npm package today means supporting multiple module systems. In this post, we explore why you should build your package with both CommonJS (CJS) and ECMAScript Module (ESM) formats, how to configure Rollup for this purpose, and th...
debrajkarmakar.hashnode.dev14 min read