Skip to content

Commit 14edd76

Browse files
authored
support importing different versions of packages (sveltejs#992)
1 parent be6e3a6 commit 14edd76

File tree

1 file changed

+1
-1
lines changed
  • packages/repl/src/lib/workers/bundler

1 file changed

+1
-1
lines changed

packages/repl/src/lib/workers/bundler/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ async function get_bundle(
291291
const pkg_url =
292292
pkg_name === 'svelte'
293293
? `${svelte_url}/package.json`
294-
: `${packages_url}/${pkg_name}/package.json`;
294+
: `${packages_url}/${pkg_name}@${match[2] ?? 'latest'}/package.json`;
295295
const subpath = `.${match[3] ?? ''}`;
296296

297297
// if this was imported by one of our files, add it to the `imports` set

0 commit comments

Comments
 (0)