Skip to content

fix: take into account component references when calculating snippet hoistability#3032

Merged
dummdidumm merged 2 commits into
masterfrom
snippet-component-hoist-fix
May 26, 2026
Merged

fix: take into account component references when calculating snippet hoistability#3032
dummdidumm merged 2 commits into
masterfrom
snippet-component-hoist-fix

Conversation

@dummdidumm

Copy link
Copy Markdown
Member

Fixes #3020

@changeset-bot

changeset-bot Bot commented May 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fcdea9d

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

This PR includes changesets to release 1 package
Name Type
svelte2tsx 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

Comment thread packages/svelte2tsx/src/htmlxtojsx_v2/nodes/SnippetBlock.ts Outdated
@dummdidumm dummdidumm merged commit 6bd8b17 into master May 26, 2026
2 of 3 checks passed
@dummdidumm dummdidumm deleted the snippet-component-hoist-fix branch May 26, 2026 12:41
@github-actions github-actions Bot mentioned this pull request Jun 1, 2026
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.

cannot use variables from <script> as a dynamic component inside of a snippet when <script module> is present

2 participants