svgr
svgr copied to clipboard
Transform SVGs into React components 🦁
## 🐛 Bug Report When creating a custom template with SVGR, I'm not able to use `componentName` as a location in an import declaration. ## To Reproduce Template code: ```js...
## 🐛 Bug Report Inside my monorepo I have a NextJS project and a shared 'icons' package which is just a folder full of svg files. Whenever I want to...
I ran the following script off the documentation: optimize.mjs ```tsx import { transform } from "@svgr/core"; const svgCode = ` `; const jsCode = transform.sync( svgCode, { icon: true },...
## 🐛 Bug Report I just upgraded to the latest versions of SVGR and react-native-svg-transformer in my project that contains both web & React Native apps. Web works just fine,...
## Summary Rollup has moved to v4, and current version of pluginutils only supports up to v3. ## Test plan
So I was working on a project where I wanna setup svgr inside a tsup package in turborepo. This is my tsup config ```ts import type { Options } from...
## 🐛 Bug Report When you configure svgr with the following: - native: true - ref: true then its generating the wrong prop type for the ref. The error is...
## 🐛 Bug Report Comments in `tpl` are getting thrown away. We are having headers as part of the output but they are missing. It started after the upgrade from...
## 🐛 Bug Report When running svgr with Prettier 3.0.0 I get this error message ``` > svgr --no-svgo --ext jsx --jsx-runtime automatic -d src/components src/svgs Failed to handle file:...
## 🚀 Feature Proposal Some SVG files contain tags with ID attributes on them, and it appears SVGR is setup to remove this attribute. I imagine the reason for this...