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

fix: no asset plugin w/ img is imported with query #8353

Merged
merged 11 commits into from
Sep 6, 2023
Merged

fix: no asset plugin w/ img is imported with query #8353

merged 11 commits into from
Sep 6, 2023

Conversation

elevatebart
Copy link
Contributor

@elevatebart elevatebart commented Sep 1, 2023

closes #8333

Changes

When importing an image with query parameters, astro now skips the assets compilation and lets the other vite plugins do their thing.

Testing

Added automated tests.

If you want to test it manually, check out the mini test repo here.

Docs

The previous behavior was unexpected.

@changeset-bot
Copy link

changeset-bot bot commented Sep 1, 2023

🦋 Changeset detected

Latest commit: bbc8c89

The changes in this PR will be included in the next version bump.

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

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Sep 1, 2023
@github-actions github-actions bot added pkg: vue Related to Vue (scope) pkg: integration Related to any renderer integration (scope) labels Sep 1, 2023
@elevatebart
Copy link
Contributor Author

Is something missing from this PR?
Is it ready to merge?
Should I try to understand why the Cloudflare tests are failing (wrangler timeout)?

thank youu

@Princesseuh
Copy link
Member

Is something missing from this PR?
Is it ready to merge?
Should I try to understand why the Cloudflare tests are failing (wrangler timeout)?

thank youu

Nothing wrong, I'll check it out tomorrow. Sorry for the delay!

@Princesseuh Princesseuh merged commit 1947ef7 into withastro:main Sep 6, 2023
12 of 13 checks passed
@astrobot-houston astrobot-houston mentioned this pull request Sep 6, 2023
@elevatebart elevatebart deleted the fix/leave-assets-with-query branch September 6, 2023 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope) pkg: integration Related to any renderer integration (scope) pkg: vue Related to Vue (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't turn off astro:assets for svg
2 participants