Skip to content

Conversation

7nik
Copy link
Contributor

@7nik 7nik commented Apr 22, 2025

Closes #622

I didn't make the dropdown list of available versions - it's too long, even of major only versions, plus it should allow pr-*, branch-*, commit-* and local versions as well.

I also did some tweaking to prevent showing the runtime and bundle errors at the same time.

Before submitting the PR, please make sure you do the following

  • It's really useful if your PR references an issue where it is discussed ahead of time.
  • Prefix your PR title with feat:, fix:, chore:, or docs:.
  • This message body should clearly illustrate what problems it solves.

Copy link

vercel bot commented Apr 22, 2025

Someone is attempting to deploy a commit to the Svelte Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Apr 30, 2025

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

Name Status Preview Updated (UTC)
svelte-dev ✅ Ready (Inspect) Visit Preview Jul 31, 2025 11:22pm

@dominikg
Copy link
Member

Needs a changeset?

@7nik
Copy link
Contributor Author

7nik commented Jul 30, 2025

Recent PR to REPL don't have changesets and the last release of @sveltejs/repl was two years ago.

Copy link
Member

@Rich-Harris Rich-Harris left a comment

Choose a reason for hiding this comment

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

i've wanted this for so long! 🙇

@Rich-Harris Rich-Harris merged commit 9022dfb into sveltejs:main Jul 31, 2025
4 checks passed
dummdidumm added a commit that referenced this pull request Sep 15, 2025
- on startup we had two requests each time due to the svelte version changes in #1319, and the file was always marked as changed. Fixed by not notifying when the version info comes from the bundle worker
- migrate had two bundle requests, one from the direct `rebundle()` call, the second one because `update_file` invoked `on_update` that also invoked `rebundle()` -> remove the direct invocation
- `reset` always did two request, because `this.set` already calls `#onreset` -> deduplicate
7nik pushed a commit to 7nik/svelte.dev that referenced this pull request Sep 18, 2025
- on startup we had two requests each time due to the svelte version changes in sveltejs#1319, and the file was always marked as changed. Fixed by not notifying when the version info comes from the bundle worker
- migrate had two bundle requests, one from the direct `rebundle()` call, the second one because `update_file` invoked `on_update` that also invoked `rebundle()` -> remove the direct invocation
- `reset` always did two request, because `this.set` already calls `#onreset` -> deduplicate
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.

Playground: Add the ability to select different versions of Svelte in the UI
4 participants