Preparing for system design interviews?  Try bugzed.com →

babel-plugin-rewire-ts

JSON →
library 1.4.0 ·javascript maintenance
verified Jun 17, 2026

A Babel plugin that enables mocking of module dependencies for testing, based on the rewire.js concept. The current stable version is 1.4.0, with a release cadence that is maintenance-focused. It is a fork of babel-plugin-rewire with added TypeScript compatibility. Key differentiators: it works with TypeScript, supports ES6 imports, CommonJS require(), and named/top-level function rewiring. It provides a RewireAPI object for convenient mocking in tests. It is specifically designed for unit testing where module dependencies need to be replaced with mocks or stubs.

total hits 10
actors 4 distinct systems
last hit 20d ago AhrefsBot
GPTBot
4
ByteDance
2
Script
1

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