Preparing for system design interviews?  Try bugzed.com →

Babel Plugin Explicit Exports References

JSON →
library 1.0.2 ·javascript
verified Jun 17, 2026

A Babel plugin that transforms internal references to a module's exports so they use `module.exports` instead of direct local variable references. This enables mocking of exported functions in Jest with Babel/TypeScript, even when those functions call each other internally within the same module. Version 1.0.2, actively maintained. Key differentiator: addresses the common problem of internal function references not being mockable in test environments, unlike other solutions that require manual refactoring or alternative mocking strategies.

total hits 16
actors 4 distinct systems
last hit 20d ago AhrefsBot
ByteDance
5
GPTBot
4
Script
1
Humans
3

top countries 🇸🇬 Singapore · 🇺🇸 United States · VN · 🇨🇦 Canada · 🇩🇪 Germany