···63636464 if (isBrotliSupported === undefined) {
6565 try {
6666- // @ts-expect-error 'br' is not in the type definition yet
6767- const size = await getCompressedSize(code, 'br');
6666+ // @ts-expect-error 'brotli' is not in the type definition yet
6767+ const size = await getCompressedSize(code, 'brotli');
6868+ console.log(`[worker] brotli supported`);
6869 isBrotliSupported = true;
6970 return size;
7071 } catch {
7272+ console.log(`[worker] brotli not supported`);
7173 isBrotliSupported = false;
7274 return undefined;
7375 }
7476 }
75777676- // @ts-expect-error 'br' is not in the type definition yet
7777- return getCompressedSize(code, 'br');
7878+ // @ts-expect-error 'brotli' is not in the type definition yet
7979+ return getCompressedSize(code, 'brotli');
7880}
79818082// #endregion