First of all, thanks for publishing this package! It seems to be the only rollup plugin for SVGs that is compatible with preact. (I've tried rollup-plugin-react-svg and rollup-plugin-svg-to-jsx with aliases, to no avail)
Anyway, I was hoping to use this plugin with @fortawesome/fontawesome-free icons, but I keep running into the following error:
Error: Unexpected token (Note that you need plugins to import files that are not JavaScript)
Any idea what's causing it? Font Awesome SVGs seems to have compliant markup. Here's a reproduction
// index.js
import { h } from 'preact'
import GitHub from '@fortawesome/fontawesome-free/svgs/brands/github.svg'
console.log(<GitHub />)
First of all, thanks for publishing this package! It seems to be the only rollup plugin for SVGs that is compatible with preact. (I've tried
rollup-plugin-react-svg
androllup-plugin-svg-to-jsx
withalias
es, to no avail)Anyway, I was hoping to use this plugin with
@fortawesome/fontawesome-free
icons, but I keep running into the following error:Error: Unexpected token (Note that you need plugins to import files that are not JavaScript)
Any idea what's causing it? Font Awesome SVGs seems to have compliant markup. Here's a reproduction