babel-root-import
JSON →Babel plugin to enable root-relative imports (e.g., import Foo from '@/foo') in JavaScript/TypeScript projects. Version 4.1.8 is the legacy package, renamed to babel-plugin-root-import (latest v6.6.0). This plugin transforms root-relative paths to relative paths at build time. Key differentiator: simple configuration (rootPathSuffix) and support for dynamic imports. Often confused with webpack aliases but works at Babel level. Low release cadence: last update 2019. Consider using babel-plugin-root-import instead, which is the maintained successor.
Traffic · last 30 days ↑300% vs prev 7d
total hits 17
actors 6 distinct systems
last hit 2d ago AhrefsBot
top countries 🇩🇪 Germany · 🇺🇸 United States · 🇨🇦 Canada · 🇸🇬 Singapore · 🇪🇸 Spain
Resources
API endpoints
full doc /v1/registry/babel-root-import
compatibility /v1/registry/babel-root-import/compatibility