Skip to content

Conversation

@florian-lefebvre
Copy link
Member

Changes

  • Improves vite plugin cleanup

Testing

N/A

Docs

N/A

@florian-lefebvre florian-lefebvre self-assigned this Mar 14, 2025
@changeset-bot
Copy link

changeset-bot bot commented Mar 14, 2025

⚠️ No Changeset found

Latest commit: 66ea21c

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 Mar 14, 2025
if (sync) {
hashToUrlMap = null;
storage = null;
if (sync || settings.config.experimental.fonts!.families.length === 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just confirming that we can be sure font is always defined. Non-null assertions always make me nervous.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes we're sure at this point, because we vite plugin is only created if fonts is defined

@florian-lefebvre florian-lefebvre merged commit ef6f9ce into feat/fonts Mar 14, 2025
14 checks passed
@florian-lefebvre florian-lefebvre deleted the fix/fonts-cleanup branch March 14, 2025 12:59
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