Skip to content

Commit

Permalink
allow branch playground urls (#1125)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored Jan 25, 2025
1 parent be182c9 commit e7c091a
Show file tree
Hide file tree
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
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/repl/src/lib/workers/bundler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e7c091a

Please sign in to comment.