Repository navigation
replace unmaintained vite-plugin-react-svg with vite-plugin-svgr - #3230
Conversation
|
|
The latest changes of this PR are not available as canary, since there are no linked |
| @@ -0,0 +1,77 @@ | |||
| import { ComponentProps, FC } from 'react'; | |||
There was a problem hiding this comment.
hmm... I'm used to doing something like this in a vite plugin in my proprietary work, is there a way we can configure the plugin to do this, or copy the plugin source and tweak it as such?
There was a problem hiding this comment.
svgr plugin incorrectly shows the type string for imported svg files, even though we set up exportAsDefault: true in vite config, if you know how to fix it feel free
@thomasheyenbrock I improved your
generateIcon()function 😅before (2 unneeded nested components)
now, only 1