babel-root-import

JSON →
library 4.1.8 ·javascript renamed
verified May 27, 2026

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.

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

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