Preparing for system design interviews?  Try bugzed.com →

rollup-plugin-commonjs-alternate

JSON →
library 0.8.0 ·javascript maintenance
verified Jun 18, 2026

A Rollup plugin that converts CommonJS modules to ES modules, designed as an alternative to @rollup/plugin-commonjs. Version 0.8.0 is the latest. It improves on the official plugin by supporting conditional requires (only including the correct branch), detecting require calls in ESM files (e.g., for React Hot Loader), and not stubbing dynamic requires (essential for HMR). It is useful for front-end libraries with best-practice module patterns, but may not work with libraries that reassign module.exports. Named exports require explicit configuration. Suitable for Rollup bundling in development and production.

total hits 11
actors 5 distinct systems
last hit 24d ago AhrefsBot
GPTBot
4
ClaudeBot
2
Script
1

top countries 🇺🇸 United States · 🇫🇷 France · 🇬🇧 United Kingdom · 🇨🇦 Canada · 🇩🇪 Germany