facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.81k stars 26.87k forks source link

Bump svgr/webpack to 6.x #12146

Open palminha opened 2 years ago

palminha commented 2 years ago

Is your proposal related to a problem?

svgr/webpack 5.5.0 is using some "old" dependencies that are causing some npm audit and dependabot warnings (see https://github.com/facebook/create-react-app/issues/12132)

Describe the solution you'd like

Bump svgr/webpack to latest version: 6.x

Additional context

SVGR v6 uses SVGO v2 under the hood and includes tons of improvement. Might need some migration work: SVGR migration guide.

palminha commented 2 years ago

can it be solved by #12026 ?

stianjensen commented 2 years ago

Also getting a warning from yarn on install of a new project now:

warning react-scripts > @svgr/webpack > @svgr/plugin-svgo > svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x