Use dynamic import for wasm module

This commit is contained in:
Belén Albeza 2024-09-13 15:14:10 +02:00
parent cc7ed497e8
commit 884ceb052b
9 changed files with 54 additions and 44 deletions

View file

@ -0,0 +1,5 @@
if (!('dynamicImport' in window)) {
window.dynamicImport = function(uri) {
return import(uri);
}
};