Preparing for system design interviews?  Try bugzed.com →

babel-plugin-module-name-mapper

JSON →
library 1.2.0 ·javascript
verified Jun 17, 2026

Babel plugin that adds Jest-like moduleNameMapper support to Babel, enabling import path rewriting with special tokens <pkgDir> and <rootDir>. <pkgDir> resolves to the directory of the closest package.json, making it ideal for monorepos. Current stable version is 1.2.0. Release cadence is low; maintained. Key differentiator: supports <pkgDir> for monorepo-friendly path resolution, which is lacking in Jest and Webpack. Alternative to babel-plugin-module-resolver with different token semantics.

total hits 21
actors 6 distinct systems
last hit 19d ago Bingbot
ByteDance
7
GPTBot
4
Amazonbot
4
Script
1
Search engines
1
Humans
1

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · MY · 🇬🇧 United Kingdom