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

fix: Svelte runes detection not working correctly in monorepos #382

Merged
merged 1 commit into from
Oct 20, 2024

Conversation

hmnd
Copy link
Contributor

@hmnd hmnd commented Oct 19, 2024

Description

#347 introduced support for Svelte 5 runes. In doing so, the Svelte plugin now imports from svelte/compiler. Without svelte being listed as an optional peer dependency, the import did not correctly resolve svelte from the current workspace within a monorepo. Thus, if another package in the monorepo depended on Svelte 5, a package depending on Svelte 4 could be misidentified as the newer version.

Copy link

stackblitz bot commented Oct 19, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@hmnd hmnd force-pushed the fix/svelte-runes-detection branch from 85519d9 to a97ca8c Compare October 19, 2024 21:44
@userquin
Copy link
Member

/cc @benmccann @dominikg

Copy link
Contributor

@benmccann benmccann left a comment

Choose a reason for hiding this comment

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

This might depend on the package manager used, but I see no harm in this PR

Copy link
Member

@userquin userquin left a comment

Choose a reason for hiding this comment

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

Thx ❤️

@userquin userquin merged commit 17a59ea into unplugin:main Oct 20, 2024
2 checks passed
@userquin
Copy link
Member

@hmnd @benmccann to release this we also need this another PR #381 and switch types/svelte to types/svelte5 adding the corresponding subpacka exports.

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.

3 participants