airbnb / airbnb/babel-plugin-inline-react-svg
Rewrite `export { default } from 'path/to.svg'`
Open
- Dominant language
- JavaScript
- Stars
- 474
- Forks
- 90
- PR merge metrics
- No merged PRs in 30d
Description
It'd be nice if a file could have `export { default } from 'path/to.svg';` and have that be transformed just as if it was `import x from 'path/to.svg'; export default x;`.
Contributor guide
No contributing guide indexed for this repository
Research direction
No file or test is named in the issue. Start by locating the plugin entry point and the existing handling for default SVG imports, then trace how re-export declarations are parsed; done means the shown re-export syntax is transformed equivalently and the relevant behavior is covered by a test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel, javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100