Preparing for system design interviews?  Try bugzed.com →

babel-plugin-rewire-exports

JSON →
library 2.3.0 ·javascript
verified Jun 17, 2026

Babel plugin for stubbing ES6/ES2015 module exports in tests. Version 2.3.0 (stable, last release 2021) allows rewriting exported values in importing modules without modifying module internals. Unlike babel-plugin-rewire, it keeps imports and local variables intact. It generates rewire/stub functions (rewire for default, rewire$name for named exports, and restore). Works with Babel 7 (use 0.x for Babel 6), supports browser and Node ESM, and bundles with Webpack, Rollup, SystemJS, and CommonJS via env preset. Release cadence: infrequent, no recent updates.

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

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