mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-13 09:17:20 +00:00
Add auto optimizer
This commit is contained in:
11
cli/src/emscripten-utils.js
Normal file
11
cli/src/emscripten-utils.js
Normal file
@@ -0,0 +1,11 @@
|
||||
export function instantiateEmscriptenWasm(factory, path) {
|
||||
if (path.startsWith("file://")) {
|
||||
path = path.slice("file://".length);
|
||||
}
|
||||
return factory({
|
||||
locateFile() {
|
||||
return path;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user