svgr
svgr copied to clipboard
Transform SVGs into React components π¦
## π Bug Report SVGR doesn't seems to contain any option to sanitize SVGs  ## To Reproduce Just add `` with the wanted XSS...
## π Bug Report With the introduction of dependencies in the next project, the svg structure in the compiled html is not consistent with the svg file structureοΌsee image ...
## Summary Fix the invalid forward ref type when using `native`, `typescript` and `ref` options ```tsx import Svg, { Path } from 'react-native-svg' import type { SvgProps } from 'react-native-svg'...
Could `@svgr/rollup` expose the runtime configuration item of `@babel/preset-react`, I want to compiled product use the `jsx-runtime` in React17 instead of the old `React.createElement`?
## π¬ Questions and Help Hello! Thanks for creating this very useful tool! I don't know if this is intended but when I use the `--ext` option, the index file...
## π Bug Report When `typescript` and `ref` are enabled, the `Ref` import should be an `import type` ## To Reproduce Convert a SVG using the `typescript` and `ref` set...
## Summary When passing options to `@svgr/webpack`, I'd like to write them with typing like this: ```ts rules: [{ test: /\.svg$/i, issuer: /\.[jt]sx?$/, use: [{ loader: '@svgr/webpack', /** @type {import('@svgr/webpack').LoaderOptions}...
## π Bug Report Prettier when using the CLI tool doesn't match when I just run prettier `2.8.8`. ## To Reproduce When I run with these configuration options: ```json {...
## Summary I think it is very important to leave this option off by default. 1 - original files have this option (e.g. copied from figma) 2 - not many...
## π Bug Report When using this library and running the type checker, I get this error: ``` ../../common/temp/node_modules/.pnpm/@[email protected]/node_modules/@svgr/core/dist/index.d.ts:2:10 - error TS2305: Module '"svgo"' has no exported member 'OptimizeOptions'. 2...