File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ function lqip(cfg, ctx) {
1818
1919function 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 ,
Original file line number Diff line number Diff 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+ } )
You can’t perform that action at this time.
0 commit comments