We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62caa18 commit bc74a13Copy full SHA for bc74a13
packages/repl/src/lib/workers/bundler/index.ts
@@ -237,6 +237,11 @@ async function get_bundle(
237
}
238
239
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
+
245
const v = await resolve_version(match[1], match[2] ?? default_version);
246
const pkg = await fetch_package(pkg_name, pkg_name === 'svelte' ? svelte_version : v);
247
const subpath = resolve_subpath(pkg, '.' + (match[3] ?? ''));
0 commit comments