{"library":"babel-plugin-root-import","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"6.6.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-root-import","imports":["// in babel.config.js\nplugins: ['babel-plugin-root-import']","const path = require('~/my-module');","import('~/my-module').then(mod => ...);"]},{"cmd":"yarn add babel-plugin-root-import","imports":[]},{"cmd":"pnpm add babel-plugin-root-import","imports":[]}],"homepage":null,"github":"https://github.com/entwicklerstube/babel-plugin-root-import","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-root-import","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-root-import/compatibility"}}