airbnb / airbnb/babel-plugin-inline-react-svg
The plugin does not co-operate with babel-plugin-module-resolver
Open
- Dominant language
- JavaScript
- Stars
- 474
- Forks
- 90
- PR merge metrics
- No merged PRs in 30d
Description
Resolution of svg path with the code
```
const svgPath = resolveFrom(dirname(iconPath), path.node.source.value);
```
does not take into account any path aliases configured with help of `babel-plugin-module-resolver`.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the `resolveFrom(dirname(iconPath), path.node.source.value)` entry point shown in the issue and inspect how SVG import paths are resolved. Check how `babel-plugin-module-resolver` aliases are configured, then verify that aliased SVG paths resolve correctly alongside existing paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100