Skip to content

Commit 19d41a6

Browse files
committed
Fix formatting
1 parent 01cb91f commit 19d41a6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/lib/vite.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ function lqip(cfg, ctx) {
1818

1919
function main(overrides = {}) {
2020
return imagetools({
21-
defaultDirectives: (url) => url.searchParams.has('run') ? new URLSearchParams('width=480;1024;1920&format=avif;webp;jpg') : new URLSearchParams(''),
21+
defaultDirectives: (url) =>
22+
url.searchParams.has('run')
23+
? new URLSearchParams('width=480;1024;1920&format=avif;webp;jpg')
24+
: new URLSearchParams(''),
2225
extendTransforms: (builtins) => [...builtins, lqip],
2326
extendOutputFormats: (builtinOutputFormats) => ({
2427
...builtinOutputFormats,

tests/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ test('returns a path by default', async ({ page }) => {
3333
await page.goto('/test')
3434
const data = JSON.parse((await page.getByTestId('default').textContent()) || '')
3535
expect(data).toBe(`/src/routes/cat01.jpg`)
36-
})
36+
})

0 commit comments

Comments
 (0)