output.disableSvgr
- Type:
boolean - Default:
false
Deprecated
output.disableSvgr is deprecated and will be removed in the next major version. Replace output.disableSvgr: true with tools.svgr set to false; output.disableSvgr: false is the default behavior and can simply be removed. When both are set, tools.svgr wins.
Whether to transform SVGs into React components. If true, will treat all .svg files as assets.
By default, when an SVG resource is referenced in a JS file, Modern.js will call SVGR to convert the SVG into a React component. If you are sure that all SVG resources in your project are not being used as React components, you can turn off this conversion by setting disableSvgr to true to improve build performance.