mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-11 16:26:20 +00:00
11 lines
199 B
TypeScript
11 lines
199 B
TypeScript
import { threads } from 'wasm-feature-detect';
|
|
|
|
async function init() {
|
|
if (await threads()) {
|
|
return (await import('./spawn')).default;
|
|
}
|
|
return import('./pkg');
|
|
}
|
|
|
|
export default init();
|