Preparing for system design interviews?  Try bugzed.com →

babel-root-import

JSON →
library 4.1.8 ·javascript renamed
verified Jun 17, 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 12
actors 4 distinct systems
last hit 20d ago AhrefsBot
GPTBot
4
ByteDance
3
Script
1
Humans
1

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