-
-
Notifications
You must be signed in to change notification settings - Fork 187
feat: add svelte version selector to REPL #1319
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
Conversation
Someone is attempting to deploy a commit to the Svelte Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Needs a changeset? |
Recent PR to REPL don't have changesets and the last release of @sveltejs/repl was two years ago. |
There was a problem hiding this 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! 🙇
- 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
- 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
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-*
andlocal
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
feat:
,fix:
,chore:
, ordocs:
.