babel-plugin-import-redirect
JSON →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.
Traffic · last 30 days stale · no recent hits
total hits 16
actors 4 distinct systems
last hit 17d ago ByteDance
top countries 🇸🇬 Singapore · 🇨🇦 Canada · 🇺🇸 United States · VN · 🇧🇷 Brazil
Resources
API endpoints
compatibility /v1/registry/babel-plugin-import-redirect/compatibility