Skip to content

fix: add script block only when there are imports to add - #14604

Merged
Rich-Harris merged 1 commit into
mainfrom
only-if-needed
Oct 5, 2025
Merged

fix: add script block only when there are imports to add#14604
Rich-Harris merged 1 commit into
mainfrom
only-if-needed

Conversation

@benmccann

Copy link
Copy Markdown
Member

closes #14060

@changeset-bot

changeset-bot Bot commented Oct 4, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 325dabd

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

This PR includes changesets to release 1 package
Name Type
@sveltejs/enhanced-img Patch

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

@Rich-Harris
Rich-Harris merged commit 79b96b7 into main Oct 5, 2025
22 checks passed
@Rich-Harris
Rich-Harris deleted the only-if-needed branch October 5, 2025 19:05
@github-actions github-actions Bot mentioned this pull request Oct 5, 2025
Copilot AI pushed a commit to Stadly/kit that referenced this pull request Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vite plugin for enhanced:img prepends unnecessary empty script elements, breaks markdown tooling

2 participants