Skip to content

Commit bc74a13

Browse files
committed
reinstate imports array
1 parent 62caa18 commit bc74a13

File tree

1 file changed

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

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,11 @@ async function get_bundle(
237237
}
238238
}
239239

240+
if (importer.startsWith(VIRTUAL)) {
241+
// if this was imported by one of our files, add it to the `imports` set
242+
imports.add(pkg_name);
243+
}
244+
240245
const v = await resolve_version(match[1], match[2] ?? default_version);
241246
const pkg = await fetch_package(pkg_name, pkg_name === 'svelte' ? svelte_version : v);
242247
const subpath = resolve_subpath(pkg, '.' + (match[3] ?? ''));

0 commit comments

Comments
 (0)