airbnb / airbnb/babel-plugin-inline-react-svg

Enable svgo removeXMLNS plugin by default

Open
#9 7 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
JavaScript
Stars
474
Forks
90
PR merge metrics
No merged PRs in 30d

Description

This plugin removes the `xmlns` attribute from the top-level svg element, which is safe for inline SVGs, which is how all SVGs transformed by this plugin will end up being used. I think it makes sense to enable this plugin by default.

https://github.com/svg/svgo/blob/master/plugins/removeXMLNS.js

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the SVGO configuration or entry point and any existing SVG optimization tests; use the linked removeXMLNS.js behavior as the reference. Verify the default configuration includes this plugin and run the relevant test suite, confirming that transformed inline SVG output no longer retains the top-level xmlns attribute.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.