babel-plugin-root-import

JSON →
library 6.6.0 ·javascript
verified May 27, 2026

Babel plugin that allows import and require with root-based paths, replacing relative path traversal (e.g., `../../../`) with a configurable prefix like `~/` or `@/`. Version 6.6.0 is the current stable release, actively maintained. Key differentiators: simple setup, multiple custom root path rules, support for dynamic imports and template literals. Still widely used but newer alternatives like `babel-plugin-module-resolver` offer more features (e.g., aliasing, TypeScript). Release cadence is irregular; last major update in 2020.

total hits 17
actors 6 distinct systems
last hit 1d ago AhrefsBot
ByteDance
3
GPTBot
2
Script
1
Search engines
1
Humans
2

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