Skip to content

Commit 97b9ff7

Browse files
authored
update
1 parent b578665 commit 97b9ff7

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

_plugins/scripts/webp.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@ import fs from "fs";
22
import path from "path";
33
import sharp from "sharp";
44

5-
async function webp({ source, destination }) {
5+
export default async function ({ source, destination }) {
66
if (global.Bun && Bun.Image) {
77
await Bun.file(source).image().webp().write(destination);
88
} else {
99
await sharp(source).toFile(destination);
1010
}
1111
return path.relative("./", destination);
1212
}
13-
14-
export default webp;

0 commit comments

Comments
 (0)