Skip to content

Commit

Permalink
allow branch playground urls (#1125)
Browse files Browse the repository at this point in the history
Rich-Harris authored Jan 25, 2025

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent be182c9 commit e7c091a
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/editor/src/lib/compile-worker/worker.ts
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ let can_use_experimental_async = false;

async function init(v: string) {
const svelte_url = v === 'local' ? '/svelte' : `https://unpkg.com/svelte@${v}`;
const match = /^(?:pr|commit)-(.+)/.exec(v);
const match = /^(?:pr|commit|branch)-(.+)/.exec(v);

let tarball: FileDescription[] | undefined;
let version: string;
2 changes: 1 addition & 1 deletion packages/repl/src/lib/workers/bundler/index.ts
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ let inited = Promise.withResolvers<typeof svelte>();
let can_use_experimental_async = false;

async function init(v: string, packages_url: string) {
const match = /^(pr|commit)-(.+)/.exec(v);
const match = /^(pr|commit|branch)-(.+)/.exec(v);

let tarball: FileDescription[] | undefined;

0 comments on commit e7c091a

Please sign in to comment.