babel-plugin-inline-react-svg
babel-plugin-inline-react-svg copied to clipboard
Rewrite `export { default } from 'path/to.svg'`
trafficstars
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;.
any progress on this ? or anything I can do to help get it merged ?
The branch exists (https://github.com/airbnb/babel-plugin-inline-react-svg/compare/export_from) but it doesn't work yet. If you'd like to adapt it into your own PR, that'd be great.
I just submitted https://github.com/airbnb/babel-plugin-inline-react-svg/pull/55, I think the output looks correct, but im not sure, any feedback would be helpful