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
Hi there, thanks for putting this together!
I'm working with a template that has some conditional logic depending on where the SVG is sourced.
// Example if (context.options.state.filePath.includes("glyphs/")) { // ...
This works totally fine when using @svgr/cli
@svgr/cli
npx @svgr/cli --template template.js -- src/glyphs/plus.svg
However, when using this plugin, the filePath attribute is no longer available.
filePath
console.log(context.options.state) // { componentName: 'ReactComponent' }
The text was updated successfully, but these errors were encountered:
Looks like it has been added since 👍
Sorry, something went wrong.
No branches or pull requests
Hi there, thanks for putting this together!
I'm working with a template that has some conditional logic depending on where the SVG is sourced.
This works totally fine when using
@svgr/cli
However, when using this plugin, the
filePath
attribute is no longer available.The text was updated successfully, but these errors were encountered: