react-native-svg-parser icon indicating copy to clipboard operation
react-native-svg-parser copied to clipboard

Babel plugin

Open msand opened this issue 7 years ago • 2 comments

Hey, great work with the parser. Have you thought about making this a babel plugin? Then one could import a .svg file and get a component as the default export. This would also make the parsing a build time thing, rather than happen on every run. What do you think?

msand avatar Feb 21 '18 17:02 msand

Someone created a CLI, https://github.com/chrisbull/svg-to-react-native-cli, for build time, but a babel plugin would definitely be better

Titozzz avatar Feb 22 '18 09:02 Titozzz

@msand I really like the babel plugin idea. Will work on it when I get some time!

a-r-d avatar Mar 01 '18 22:03 a-r-d