From 16c4eaeca46ed2807d6220e882c651ec0829ef72 Mon Sep 17 00:00:00 2001 From: robo-mop Date: Thu, 19 Oct 2023 17:11:15 +0530 Subject: [PATCH] [FAULTY] add qoi to be cached --- src/sw/to-cache.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/sw/to-cache.ts b/src/sw/to-cache.ts index 49afaf073..e241737e1 100644 --- a/src/sw/to-cache.ts +++ b/src/sw/to-cache.ts @@ -26,6 +26,7 @@ import * as featuresWorker from 'entry-data:../features-worker'; // Decoders (some are feature detected) import * as avifDec from 'entry-data:codecs/avif/dec/avif_dec'; import * as webpDec from 'entry-data:codecs/webp/dec/webp_dec'; +import * as qoiDec from 'entry-data:codecs/qoi/dec/qoi_dec'; // AVIF import * as avifEncMt from 'entry-data:codecs/avif/enc/avif_enc_mt'; @@ -40,6 +41,9 @@ import * as jxlEnc from 'entry-data:codecs/jxl/enc/jxl_enc'; import * as oxiMt from 'entry-data:codecs/oxipng/pkg-parallel/squoosh_oxipng'; import * as oxi from 'entry-data:codecs/oxipng/pkg/squoosh_oxipng'; +// QOI +import * as qoiEnc from 'entry-data:codecs/qoi/enc/qoi_enc'; + // WebP import * as webpEncSimd from 'entry-data:codecs/webp/enc/webp_enc_simd'; import * as webpEnc from 'entry-data:codecs/webp/enc/webp_enc'; @@ -108,6 +112,7 @@ export const theRest = (async () => { if (!supportsAvif) addWithDeps(avifDec); if (!supportsWebP) addWithDeps(webpDec); + addWithDeps(qoiDec); // AVIF if (supportsThreads) { @@ -132,6 +137,9 @@ export const theRest = (async () => { addWithDeps(oxi); } + // QOI + addWithDeps(qoiEnc); + // WebP if (supportsSimd) { addWithDeps(webpEncSimd);