diff --git a/src/features/decoders/qoi/worker/qoiDecode.ts b/src/features/decoders/qoi/worker/qoiDecode.ts index 0d88b09aa..50b21dd5e 100644 --- a/src/features/decoders/qoi/worker/qoiDecode.ts +++ b/src/features/decoders/qoi/worker/qoiDecode.ts @@ -1,12 +1,11 @@ -import type { QOIModule } from 'codecs/qoi/dec/qoi_dec'; +import qoiDecoder, { QOIModule } from 'codecs/qoi/dec/qoi_dec'; import { initEmscriptenModule, blobToArrayBuffer } from 'features/worker-utils'; let emscriptenModule: Promise; export default async function decode(blob: Blob): Promise { if (!emscriptenModule) { - const decoder = await import('codecs/qoi/dec/qoi_dec'); - emscriptenModule = initEmscriptenModule(decoder.default); + emscriptenModule = initEmscriptenModule(qoiDecoder); } const [module, data] = await Promise.all([