Preparing for system design interviews?  Try bugzed.com →

babel-plugin-import-redirect

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

A Babel plugin (v1.1.1) that rewrites import, export from, require() and dynamic import() paths to custom destinations, primarily used for mocking in tests. Last updated in 2017, it supports regex-based redirects, extra function handling, and global replacements. Unlike module aliases or webpack resolve aliases, this operates at the Babel AST level, allowing fine-grained control per file. Requires Node >=4 and babel 6/7.

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

top countries 🇸🇬 Singapore · 🇨🇦 Canada · 🇺🇸 United States · VN · 🇧🇷 Brazil