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

refactor(assets): Move things around to avoid importing image service unnecessarily #9409

Merged
merged 2 commits into from
Dec 15, 2023

Conversation

Princesseuh
Copy link
Member

@Princesseuh Princesseuh commented Dec 11, 2023

Changes

In the way of trying to solve withastro/adapters#58, I realized there's some instances where the image service could get imported by accident because some utils were next to the code that loads it. This refactor move away everything unrelated to that elsewhere, so that people and adapters can import the utilities without anything else coming in by accident.

This doesn't unblock the linked PR just yet, some other bundling nonsense is in the way, however it's a step forward!

Testing

Tests should pass, this is just a refactor!

Docs

N/A

Copy link

changeset-bot bot commented Dec 11, 2023

⚠️ No Changeset found

Latest commit: 60f4644

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Dec 11, 2023
@Princesseuh Princesseuh marked this pull request as ready for review December 13, 2023 20:57
Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

Looks good to me

@Princesseuh Princesseuh merged commit 017f981 into main Dec 15, 2023
13 checks passed
@Princesseuh Princesseuh deleted the fix/assets-bundling branch December 15, 2023 17:25
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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants