{"library":"babel-plugin-module-resolver","type":"library","category":null,"description":"A Babel plugin that allows custom module resolution by defining root directories and aliases, eliminating deep relative imports like '../../../../utils'. It simplifies import/require paths for cleaner code. Current stable version is 5.0.3 (July 2024). Release cadence is irregular, with major version bumps occasionally (v4 in 2020, v5 in 2023). Key differentiators: supports both import and require, works with Babel 7+, and integrates with ESLint via eslint-import-resolver-babel-module for linting. Alternative: TypeScript's paths in tsconfig.json but this plugin works for plain JavaScript/Babel projects.","language":"javascript","status":"active","version":"5.0.3","tags":["javascript","babel","babel-plugin","module","resolver","alias","rewrite","resolve","rename"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-module-resolver","imports":["import plugin from 'babel-plugin-module-resolver'","import { resolvePath } from 'babel-plugin-module-resolver'","import type { PluginOptions } from 'babel-plugin-module-resolver'"]},{"cmd":"yarn add babel-plugin-module-resolver","imports":[]},{"cmd":"pnpm add babel-plugin-module-resolver","imports":[]}],"homepage":null,"github":"https://github.com/tleunen/babel-plugin-module-resolver","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-module-resolver","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-module-resolver/compatibility"}}