importAll as transform.See original GitHub issue
@kentcdodds first off, thanks for the badass macro.
One thing I was thinking about is using svgr and importAll.
e.g. using https://github.com/evenchange4/svgr.macro
and this together.
basically I’d like to be able to do something like this
import my svg files, transform them using svgr and output a const icons object which has the mapping of the component names so I can then create an Icon component which picks one from the
icons by a
Is this currently possible? Or could we add this kind of transform function to import-all?
- Created 5 years ago
- Comments:9 (4 by maintainers)