Files
squoosh/codecs/oxipng/index.ts
2020-09-24 13:29:32 +01:00

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();