Skip to content

Conversation

@axel7083
Copy link
Contributor

@axel7083 axel7083 commented Sep 11, 2025

Description

The <svelte:options runes/> were not checking for the value, so it was always true. When using <svelte:options runes={false}/> the props exported were Record<string, never> which is incorrect.

Related issues

Fixes #2843

Testing

  • appropriate sample has been added

@changeset-bot
Copy link

changeset-bot bot commented Sep 11, 2025

🦋 Changeset detected

Latest commit: 8e59b25

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

This PR includes changesets to release 4 packages
Name Type
svelte2tsx Patch
svelte-check Patch
svelte-language-server Patch
typescript-svelte-plugin 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

@axel7083 axel7083 changed the title fix(svelte2tsx): support for runes={false} svelte:options fix(svelte2tsx): support for runes={false} in svelte:options Sep 11, 2025
Signed-off-by: axel7083 <[email protected]>
@axel7083
Copy link
Contributor Author

This PR includes changesets to release 3 packages
Name Type
svelte2tsx Patch
svelte-language-server Patch
typescript-svelte-plugin Patch

Pretty weird that svelte-check is not bumped? it depends on svelte-language-server :/

@axel7083 axel7083 requested a review from dummdidumm September 12, 2025 11:32
@axel7083
Copy link
Contributor Author

@dummdidumm I updated the failing test 👍

Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

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

thank you!

@axel7083
Copy link
Contributor Author

@dummdidumm I added the expected-svelte5.ts after seeing the test-svelte5 failing. (I was not aware it was required first)

@axel7083
Copy link
Contributor Author

@dummdidumm yeahh all tests are passing :p

Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

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

thank you!

@dummdidumm dummdidumm merged commit dec37ea into sveltejs:master Sep 15, 2025
3 checks passed
@github-actions github-actions bot mentioned this pull request Sep 11, 2025
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.

svelte-check fails to infer props when component has <svelte:options runes={false} />

2 participants