Repository navigation
fix(css): keep the space before an SVG data: URL the minifier rewrites - #22880
Conversation
🦋 Changeset detectedLatest commit: c279d5b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to
|
|
Reported by Types Coverage #2102 for c279d5b, computed by this pull request's own code. Types CoverageCoverage after merging fix/css-minify-svg-url-space into main will be
Coverage Report |
|
Reported by Code Size #5539 for c279d5b, computed by this pull request's own code. Generated code sizeComparing base (
Read No asset changed size. No runtime gained or lost a runtime module. Built |
|
This PR is packaged and the instant preview of its latest commit is available. Install it locally:
npm i -D webpack@https://pkg.pr.new/webpack@22880
yarn add -D webpack@https://pkg.pr.new/webpack@22880
pnpm add -D webpack@https://pkg.pr.new/webpack@22880 |
Merging this PR will improve performance by 93.74%2 warnings, 1 note
Performance Changes
Tip Curious why performance improved? Comment Comparing |
Summary
Fixes #22877
A deferred SVG
data:URL printed as a bare marker, so the join dropped the spaces around it (redurl(…)). The marker now sits insideurl(…), spaced like any otherurl().What kind of change does this PR introduce?
fix
Did you add tests for your changes?
Yes,
test/unitCases/css/printer.unittest.js.Does this PR introduce a breaking change?
No
If relevant, what needs to be documented once your changes are merged or what have you already documented?
n/a
Use of AI
Yes, Claude Code helped trace the cause and draft the fix. I reproduced and verified it locally.
Summary by CodeRabbit