Add auto optimizer

This commit is contained in:
Surma
2020-09-15 17:53:49 +01:00
parent 1d7b6ab13e
commit c8dc88f8a1
4 changed files with 144 additions and 77 deletions

View File

@@ -0,0 +1,11 @@
export function instantiateEmscriptenWasm(factory, path) {
if (path.startsWith("file://")) {
path = path.slice("file://".length);
}
return factory({
locateFile() {
return path;
}
});
}