Skip to content

Update to Svelte 5, convert to ESM only #3144

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

RobbieTheWagner
Copy link
Member

@RobbieTheWagner RobbieTheWagner commented Mar 6, 2025

In an effort to reduce complexity we will just be shipping ESM going forward. A lot of libraries have chosen this path and we believe it is the correct way to go.

Copy link

vercel bot commented Mar 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
shepherd-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2025 1:05pm
shepherd-landing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2025 1:05pm

@RobbieTheWagner RobbieTheWagner changed the title Svelte 5 that builds Update to Svelte 5, convert to ESM only Mar 25, 2025
@RobbieTheWagner RobbieTheWagner marked this pull request as ready for review March 25, 2025 13:44
import ShepherdElement from './components/shepherd-element.svelte';
import { type Tour } from './tour.ts';
import type { ComputePositionConfig } from '@floating-ui/dom';
import { createClassComponent } from 'svelte/legacy';
Copy link
Member Author

Choose a reason for hiding this comment

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

@Rich-Harris is there a way to do this without the legacy stuff? We need to get a reference to an element, which does not seem to be possible in Svelte 5 unless the parent is also a Svelte component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant