diff --git a/packages/editor/src/lib/compile-worker/worker.ts b/packages/editor/src/lib/compile-worker/worker.ts index ce90e7985..7c22fb542 100644 --- a/packages/editor/src/lib/compile-worker/worker.ts +++ b/packages/editor/src/lib/compile-worker/worker.ts @@ -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; diff --git a/packages/repl/src/lib/workers/bundler/index.ts b/packages/repl/src/lib/workers/bundler/index.ts index 1c4631aa6..f9e5925a0 100644 --- a/packages/repl/src/lib/workers/bundler/index.ts +++ b/packages/repl/src/lib/workers/bundler/index.ts @@ -34,7 +34,7 @@ let inited = Promise.withResolvers(); 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;