We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using the loader like so to load an inline SVG... import AlertIcon from "-!react-svg-loader!images/foo.svg;
import AlertIcon from "-!react-svg-loader!images/foo.svg;
Edge errors as it can't understand the rest/spread syntax.
The text was updated successfully, but these errors were encountered:
Using the rollup variant of this loader, I needed to configure the babel plugin to also compile files with svg extension to make it work:
svg
plugins: [ babel({ exclude: 'node_modules/**', extensions: ['js', 'jsx', 'svg'] }), resolve(), commonjs(), reactSvg({ svgo: {multipass: true} }) ]
Sorry, something went wrong.
Agree. The build export should be a traditional ESM (ES5 + import/export).
No branches or pull requests
When using the loader like so to load an inline SVG...
import AlertIcon from "-!react-svg-loader!images/foo.svg;
Edge errors as it can't understand the rest/spread syntax.
The text was updated successfully, but these errors were encountered: