babel-plugin-add-module-exports fixes the common Babel issue where module.exports remains {} when using export default. It automatically transforms export default constructs into module.exports = exports.default, ensuring proper CommonJS module interoperability. This plugin streamlines integration with Node.js and other CommonJS environments, particularly beneficial when migrating from ES modules to projects relying on require. Simplifies module sharing and enhances compatibility across different module systems.
The npm package babel-plugin-add-module-exports saw active development from November 2015 to October 2020, with occasional releases. The initial flurry of versions in late 2015 was followed by periods of inactivity. Releases occurred sporadically throughout 2016, 2018, 2019 and 2020, with version 1.0.0 appearing in September 2018. No releases have occurred since September 2020.
Babel-plugin-add-module-exports downloads surged from February 2024 to June 2025, peaking at 5.7 million. Since then they are stable around 5 million, with the exception of this month. August 2025 downloads are significantly lower (2.8 million), likely due to incomplete monthly data.