babel-plugin-relative-path-import (stable v2.0.1, Babel 7+) enables root-based import paths (e.g., '@actions/UserAction') as an alternative to deeply nested relative paths. Supports multiple custom prefix/suffix mappings. Differentiates from Webpack resolve aliases by working at the Babel transform level, allowing compatibility with tools that don't resolve Webpack aliases. Primarily used with Node.js/React projects. Last updated 2019, see more recent alternatives like babel-plugin-root-import.
npm install babel-plugin-relative-path-importVerified import paths — ran on the pinned version, not inferred.
Configures Babel to resolve '@'-prefixed imports relative to a 'src' directory.
If on Babel 6, install version 1.0.5 or lower.
Update config to use array format as shown in README.
Ensure you use Babel for both build and runtime, or use a runtime resolver like module-alias.
Migrate to the new array-based paths configuration.
Use the plugin only as a string in Babel configuration, not as an imported module.
Verify rootPathSuffix is correct and that Babel plugin runs before Webpack resolves modules.
No dependency data recorded yet.