fd0d0f5a87
The default behavior for svg is `dangerouslyAllowSVG: false` which means we won't try to optimize the image because its vector (see #34431 for more). However, svg was incorrectly getting the `srcset` attribute assigned which would contain duplicate information like: ``` /test.svg 1x, /test.svg 2x ``` So this PR makes sure we treat svg the same as `unoptimized: true`, meaning there is no `srcset` generated. Note that this PR won't change the behavior if `loader` is defined or if `dangerouslyAllowSVG: true`. |
||
---|---|---|
.. | ||
components | ||
pages | ||
public | ||
test | ||
style.module.css |