Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditionally omit assets #71

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

lukashaertel
Copy link

  • Add option to include SVGs as assets, defaults undefined false.
  • Set enforce and load according to options.

Addresses #69

* Add option to include SVGs as assets, defaults undefined false.
* Set enforce and load according to options.
@mattsputnikdigital
Copy link

Is this going to be merged?

@pd4d10
Copy link
Owner

pd4d10 commented Sep 20, 2023

This has indeed been a longstanding issue, because Vite cannot distinguish whether the svg url is being used or not while using named export. Therefore, we have made major upgrades in v4 to make a clear distinction.

For more information, see https://github.com/pd4d10/vite-plugin-svgr?tab=readme-ov-file#usage

Thanks for the contribution!

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.

None yet

3 participants