Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite export { default } from 'path/to.svg' #30

Open
ljharb opened this issue Nov 6, 2017 · 3 comments
Open

Rewrite export { default } from 'path/to.svg' #30

ljharb opened this issue Nov 6, 2017 · 3 comments

Comments

@ljharb
Copy link
Collaborator

ljharb commented Nov 6, 2017

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;.

ljharb added a commit that referenced this issue May 18, 2018
ljharb added a commit that referenced this issue May 18, 2018
@jb-san
Copy link

jb-san commented Nov 13, 2018

any progress on this ? or anything I can do to help get it merged ?

@ljharb
Copy link
Collaborator Author

ljharb commented Nov 14, 2018

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.

@jb-san
Copy link

jb-san commented Nov 14, 2018

I just submitted #55, I think the output looks correct, but im not sure, any feedback would be helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants