Closed pawelnvk closed 6 years ago
The separate variable loaders
would be a good idea normally, but in this case it's going to complicate merging changes from upstream. ☹️
What do you think about doing it like so? It's maybe a little bit hacky...
[
foo,
bar,
someEnvVar ? baz : null,
qun
].filter(x => x)
I wanted to omit such hacky solutions, but when the cause is good I can't say no 😄 I will change it.
Alternatively, since we already only load *.inline.svg
files as components, we might not use an env var to decide at all.
This is proposal of optional way of handling importing SVGs as JSX with usage of
svg-react-loader
.