Skip to content

[web] Add @svgr/plugin-jsx#537

Merged
dgdavid merged 1 commit intomasterfrom
fix-svgr
Apr 19, 2023
Merged

[web] Add @svgr/plugin-jsx#537
dgdavid merged 1 commit intomasterfrom
fix-svgr

Conversation

@dgdavid
Copy link
Copy Markdown
Contributor

@dgdavid dgdavid commented Apr 18, 2023

Problem

After the latest dependencies update, icon sizes stop working as expected due to SVGO ignoring the configuration and removing their viewBox attribute.

The problem looks related with a breaking change introduced in @svgr v7.0.0:

plugin-jsx is no longer included by default in core

Solution

Explicitly add the plugin-jsx

Testing

  • Tested manually

Screenshots

Before After
Screen Shot 2023-04-18 at 13 23 19 Screen Shot 2023-04-18 at 13 21 42

To keep @svgr[1] working as it was after updating it to v7.0.0[2]

Related to dependencies update done at [3]

[1] https://github.com/gregberge/svgr
[2] https://github.com/gregberge/svgr/releases/tag/v7.0.0
[3] #536
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 4732309600

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 73.786%

Totals Coverage Status
Change from base Build 4730826547: 0.0%
Covered Lines: 4759
Relevant Lines: 6218

💛 - Coveralls

Copy link
Copy Markdown
Contributor

@joseivanlopez joseivanlopez left a comment

Choose a reason for hiding this comment

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

LGTM

@dgdavid dgdavid merged commit 70a20c4 into master Apr 19, 2023
@dgdavid dgdavid deleted the fix-svgr branch April 19, 2023 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants