Skip to content

Commit 17fe83e

Browse files
committed
Augment Pyodide with pre-fetched packages details
1 parent 59c140e commit 17fe83e

File tree

6 files changed

+7725
-139
lines changed

6 files changed

+7725
-139
lines changed

esm/interpreter/pyodide.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@ export default {
7575
async engine({ loadPyodide, version }, config, url, baseURL) {
7676
progress('Loading Pyodide');
7777
let { packages, index_urls } = config;
78-
if (packages) packages = packages.map(fixedRelative, baseURL);
78+
if (packages) {
79+
packages = packages.map(fixedRelative, baseURL);
80+
progress('Loading Packages Graph');
81+
await import(/* webpackIgnore: true */'./pyodide_graph.js');
82+
progress('Loaded Packages Graph');
83+
}
7984
progress('Loading Storage');
8085
const indexURL = url.slice(0, url.lastIndexOf('/'));
8186
// each pyodide version shares its own cache

0 commit comments

Comments
 (0)