-
Notifications
You must be signed in to change notification settings - Fork 4
Include Support for Dynamic Generated Filepaths in JSX #4
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
Comments
Hi Roy, |
Sounds great. Thanks for the detailed response and background on what might be possible as an enhancement I'm the future. |
I'd love to see this enhancement happen. Must admit that I don't know very much about how it might work in other packers - but webpack indeed supports dynamic requires. Consider the following dummy React component:
With your the jsx-img-import transform enabled, the first image works exactly as expected. The 2nd image works, regardless of the transfform, and the third image would work - if this enhancement goes through. (ps & OT: I'm looking for a similar transform for jade/pug) |
Hi, any news on this? This would indeed be a neat enhancement |
Thanks for the great plugin. One potential improvement would be to add support for dynamic data in JSX. Specifically the following code that is not caught by this plugin:
Thanks again and let me know if there is anything that I can do to help or if this is just a bug within my code.
The text was updated successfully, but these errors were encountered: