You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We migrated to using parcel around a 1month ago (previously used babel) and use svgo plugin to optimise svg files, but since migrating we have seen some images cut-off and some completely misplaced from their div, but others were fine which upon inspection is due to the svgProps in the legacy file below
We are using React and are using an svg transformer to transform svg to jsx
We have this legacy file which was used to optimise svg files prior to using parcel. The ideal would be to remove this, but the svgProps is causing the biggest issue.
When svgProps remains as is, some svg images are fine and others are slightly cut off
When svgProps is removed, the original cut-off svg images are now fine, but the some other images are misplaced from their div and enlarged
"start": "npm run clear && npm run onesignal && npm run assets && parcel src/index.html --port 8081"
🤔 Expected Behavior
Images are not cut off OR largely expanded and misplaced from their div based on the inclusion or exclusion of svgProps
😯 Current Behavior
When removing the svgProps, some SVG images get massively expanded and misplaced out of their divs, with some showing up right in the centre of the page
The text was updated successfully, but these errors were encountered:
🐛 bug report
babel
) and use svgo plugin to optimisesvg
files, but since migrating we have seen some images cut-off and some completely misplaced from theirdiv
, but others were fine which upon inspection is due to thesvgProps
in the legacy file belowWe have this legacy file which was used to optimise svg files prior to using parcel. The ideal would be to remove this, but the
svgProps
is causing the biggest issue.svgProps
remains as is, some svg images are fine and others are slightly cut offsvgProps
is removed, the original cut-off svg images are now fine, but the some other images are misplaced from their div and enlarged🎛 Configuration (.babelrc, package.json, cli command)
.parcelrc
npm commands to start parcel
🤔 Expected Behavior
div
based on the inclusion or exclusion ofsvgProps
😯 Current Behavior
svgProps
, some SVG images get massively expanded and misplaced out of theirdivs
, with some showing up right in the centre of the pageThe text was updated successfully, but these errors were encountered: