vite-plugin-svgr icon indicating copy to clipboard operation
vite-plugin-svgr copied to clipboard

Vite plugin to transform SVGs into React components

Results 33 vite-plugin-svgr issues
Sort by recently updated
recently updated
newest added

SVG: ```svg ``` React Component: ```ts import { ReactComponent as SpinnerIcon } from '@assets/icons/spinner.svg'; export default function App() { return } ``` Will result in `` instead of ``

Hello 👋, When using default export, and running `vite build`, I got this error : ```shell error TS2322: Type '{ class: string; }' is not assignable to type 'IntrinsicAttributes'. Property...

Getting a strange eslint warning in my `vite.config.js` of the `svgr` plugin import. The actual functionality of the plugin is working just fine. ```js import path from "path"; import {...

Failed to build React TS (pnpm) project with following error: ``` > tsc && vite build --mode dev node_modules/.pnpm/@[email protected]/node_modules/@svgr/core/dist/index.d.ts:2:10 - error TS2305: Module '"svgo"' has no exported member 'OptimizeOptions'. import...

Is set out dir svgr for build output the component in a directory is not working. Is it support?

Hi there! So, I am using Lerna and fetching stories from different packages to my Storybook Vite package. I import your extension on the vite.config.ts as described in the docs...

It would be great to add sourcemaps support to this project. I think it should be possible to do it using `magic-string` ([npm link](https://www.npmjs.com/package/magic-string)). The implementation might look like this:...

I recently updated to module version `2.2.1` and noticed that I now have a hard-to-figure-out error in my tsconfig.json in relation to this plugin. Interestingly, this is fine in my...

First off, thanks for making this! Please let me know if this should go to the SVGR repo, because it's definitely possible. I'm using Preact and my config in `vite.config.ts`...

Using with `@svgr/plugin-svgo` fails with following error. Using `vite-plugin-svgr` without `@svgr/plugin-svgo` works. ```Error: Transform failed with 1 error: /Users/devunt/workspace/ccoli/frontend/src/assets/logo.svg:1:102: ERROR: Expected "}" but found ":" at failureErrorWithLog (/Users/devunt/workspace/ccoli/frontend/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1624:15) at /Users/devunt/workspace/ccoli/frontend/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1413:29...