Preparing for system design interviews?  Try bugzed.com →

babel-plugin-transform-commonjs

JSON →
library 1.1.6 ·javascript
verified Jun 17, 2026

A Babel 7 plugin that transforms CommonJS modules (require, module.exports, exports) into ES modules (import/export). Version 1.1.6 is the latest stable release. It aims to produce spec-compliant ESM code and throws on unsupported patterns like non-static require or require.extensions. It offers escape hatches (synchronousImport, exportsOnly) for controlled conversion. Unlike @babel/plugin-transform-modules-commonjs (which targets the opposite direction), this plugin converts CJS to ESM and is mainly used for building ESM-compatible bundles or migration.

total hits 17
actors 4 distinct systems
last hit 17d ago ByteDance
ByteDance
8
GPTBot
4
Script
1

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