Update Prettier

Also manually run prettier on `src/` and `lib/` to ensure
consistent formatting.
This commit is contained in:
Tim van der Lippe
2021-10-20 12:21:56 +01:00
parent e3f840c6da
commit e23bc4d2e5
8 changed files with 49 additions and 50 deletions

View File

@@ -82,24 +82,20 @@ initialJs = subtractSets(
export const initial = ['/', ...initialJs];
export const theRest = (async () => {
const [
supportsThreads,
supportsSimd,
supportsWebP,
supportsAvif,
] = await Promise.all([
threads(),
simd(),
...[webpDataUrl, avifDataUrl].map(async (dataUrl) => {
if (!self.createImageBitmap) return false;
const response = await fetch(dataUrl);
const blob = await response.blob();
return createImageBitmap(blob).then(
() => true,
() => false,
);
}),
]);
const [supportsThreads, supportsSimd, supportsWebP, supportsAvif] =
await Promise.all([
threads(),
simd(),
...[webpDataUrl, avifDataUrl].map(async (dataUrl) => {
if (!self.createImageBitmap) return false;
const response = await fetch(dataUrl);
const blob = await response.blob();
return createImageBitmap(blob).then(
() => true,
() => false,
);
}),
]);
const items: string[] = [];