diff --git a/packages/docs/src/content/docs/guides/webp.mdx b/packages/docs/src/content/docs/guides/webp.mdx index 2fc7dce8..b936b325 100644 --- a/packages/docs/src/content/docs/guides/webp.mdx +++ b/packages/docs/src/content/docs/guides/webp.mdx @@ -43,10 +43,8 @@ For example in vite/astro you can use `vite-plugin-node-polyfills`. import { nodePolyfills } from "vite-plugin-node-polyfills"; export default defineConfig({ - plugins: [ - // You only need to polyfill buffer if you're using a browser - plugins: [nodePolyfills({ include: ["buffer"] })], - ], + // You only need to polyfill buffer if you're using a browser + plugins: [nodePolyfills({ include: ["buffer"] })], }); ``` @@ -55,4 +53,4 @@ export default defineConfig({ - [@jimp/wasm-avif](https://github.com/jimp-dev/jimp/tree/main/plugins/wasm-avif) - [@jimp/wasm-jpeg](https://github.com/jimp-dev/jimp/tree/main/plugins/wasm-jpeg) - [@jimp/wasm-png](https://github.com/jimp-dev/jimp/tree/main/plugins/wasm-png) -- [@jimp/wasm-webp](https://github.com/jimp-dev/jimp/tree/main/plugins/wasm-webp) \ No newline at end of file +- [@jimp/wasm-webp](https://github.com/jimp-dev/jimp/tree/main/plugins/wasm-webp)