next-svgr
next-svgr copied to clipboard
Convert your SVG files into React components in Next
Next 11 now has built in image loaders that get in the way of this plugin. You can do something like this: ```js cfg.module.rules[2] = { oneOf: [ { test:...
It would be great if this plugin added an option to use the [SVGR + `url-loader` pattern](https://react-svgr.com/docs/webpack/#using-with-url-loader-or-file-loader), so that you can have imports like so: ```js import starUrl, { ReactComponent...
Haven’t looked at the code yet, but this would be useful.
Tested the changes with Next 9.4. The updated package works as expected. Please review.
Previously, webpack would attempt to resolve @svgr/webpack relative to the Next.js project, which would result in an error like this using strict package managers like pnpm / Yarn PnP: Module...