Skip to content

Commit 0c509af

Browse files
committed
turns out this code doesn't actually do anything - very old versions are already broken and this doesn't fix them. we can deal with that another time if we want to
1 parent 6f4a129 commit 0c509af

File tree

1 file changed

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

1 file changed

+0
-20
lines changed

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

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -275,26 +275,6 @@ async function get_bundle(
275275

276276
if (importee === 'esm-env') return importee;
277277

278-
const v5 = is_v5();
279-
const v4 = !v5 && is_v4();
280-
281-
if (!v5) {
282-
// importing from Svelte
283-
if (importee === `svelte`)
284-
return v4 ? `${svelte_url}/src/runtime/index.js` : `${svelte_url}/index.mjs`;
285-
286-
if (importee.startsWith(`svelte/`)) {
287-
const sub_path = importee.slice(7);
288-
if (v4) {
289-
return `${svelte_url}/src/runtime/${sub_path}/index.js`;
290-
}
291-
292-
return is_legacy_package_structure()
293-
? `${svelte_url}/${sub_path}.mjs`
294-
: `${svelte_url}/${sub_path}/index.mjs`;
295-
}
296-
}
297-
298278
if (importee === shared_file) return importee;
299279

300280
// importing from another file in REPL

0 commit comments

Comments
 (0)