babel-plugin-root-import
JSON →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.
Traffic · last 30 days ↑0% vs prev 7d
total hits 17
actors 6 distinct systems
last hit 1d ago AhrefsBot
top countries 🇩🇪 Germany · 🇸🇬 Singapore · 🇺🇸 United States · 🇬🇧 United Kingdom · 🇨🇦 Canada
Resources
API endpoints
compatibility /v1/registry/babel-plugin-root-import/compatibility