Closed ccorcos closed 9 years ago
Interesting...
Let me take a look and I'll see what I can do.
;-j
At first pass this looks like it might be an issue with Babel interpreting the curly ({}) braces and blowing up when it encounters that colon...
SyntaxError: unknown: Unexpected token (23:18)
21 | <svg {...this.props}>
22 | <style type="text/css">
> 23 | .st0{fill-rule:evenodd;clip-rule:evenodd;fill:#B2B2B2;}
| ^
24 | </style>
25 | <g>
26 | <g>
Looks like its a known thing with JSX, but I don't think it really is an issue. Babel/JSX is doing what it is supposed to do.
Looks like I'll have to add a special case for style tags and their contents.
This should be working now with svg-react-loader@0.2.0
sweet!
I get a syntax error when there are styles in the svg files... :/