Skip to content

feat: svg optimizer#13732

Open
florian-lefebvre wants to merge 9 commits intomainfrom
feat/svg-optimizer
Open

feat: svg optimizer#13732
florian-lefebvre wants to merge 9 commits intomainfrom
feat/svg-optimizer

Conversation

@florian-lefebvre
Copy link
Copy Markdown
Member

Description (required)

svgOptimizer replaces svgo. Choosing which version to use for the Since component is tricky: SVG optimization exists since 5.16 but the API changes a lot in 6.2. So I decided not to touch it

Related issues & labels (optional)

  • Closes #
  • Suggested label:

For Astro version: 6.2. See astro PR #16333.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 15, 2026

Deploy Preview for astro-docs-2 ready!

Name Link
🔨 Latest commit 925cfe7
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/69e08c62038e9a0008fde85e
😎 Deploy Preview https://deploy-preview-13732--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@florian-lefebvre florian-lefebvre marked this pull request as ready for review April 15, 2026 08:43
@Princesseuh Princesseuh added this to the 6.2 milestone Apr 15, 2026
@astrobot-houston
Copy link
Copy Markdown
Contributor

astrobot-houston commented Apr 15, 2026

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
en/reference/experimental-flags/svg-optimization.mdx Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

Copy link
Copy Markdown
Member

@ArmandPhilippot ArmandPhilippot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I left a few nits/typo fixes but otherwise this looks good to me. Regarding the version, yeah, I'm not sure what is best. I left a comment about that but I don't really have a strong opinion here.

Comment thread src/content/docs/en/reference/experimental-flags/svg-optimization.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/svg-optimization.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/svg-optimization.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/svg-optimization.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/svg-optimization.mdx Outdated
@ArmandPhilippot ArmandPhilippot added merge-on-release Don't merge this before the feature is released! (MQ=approved but WAIT for feature release!) minor-release For the next minor release; in the milestone, "merge queue" = approved for merging on release day. labels Apr 15, 2026
Copy link
Copy Markdown
Member

@yanthomasdev yanthomasdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @florian-lefebvre, I have a few nits but overall it's looking great!

Comment thread src/content/docs/en/reference/experimental-flags/svg-optimization.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/svg-optimization.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/svg-optimization.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/svg-optimization.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/svg-optimization.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/svg-optimization.mdx Outdated
Comment thread src/content/docs/en/reference/experimental-flags/svg-optimization.mdx Outdated
florian-lefebvre and others added 8 commits April 16, 2026 09:11
…ion.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ion.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ion.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ion.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ion.mdx

Co-authored-by: Armand Philippot <git@armand.philippot.eu>
…ion.mdx

Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
Copy link
Copy Markdown
Member

@ArmandPhilippot ArmandPhilippot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! 🫡

Copy link
Copy Markdown
Member

@yanthomasdev yanthomasdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-on-release Don't merge this before the feature is released! (MQ=approved but WAIT for feature release!) minor-release For the next minor release; in the milestone, "merge queue" = approved for merging on release day.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants