rsnext/packages/next/server/lib/squoosh/webp
Steven 3102899f69
Fix squoosh image optimization for Node.js 18 (#38833)
Starting in Node.js 18, the `fetch` global was made available and that caused the squoosh implementation to assume it was on a web browser and try to fetch the wasm file instead of reading it from the filesystem. This PR deletes the code trying to fetch since we know that squoosh only runs in the Image Optimization API, not the browser.

- Fixes #38020 
- Enables a test that was disabled in #38460
2022-07-20 12:24:50 -04:00
..
webp_enc.d.ts Bump squoosh to the latest version (#29506) 2021-10-06 14:47:48 +00:00
webp_node_dec.js Fix squoosh image optimization for Node.js 18 (#38833) 2022-07-20 12:24:50 -04:00
webp_node_dec.wasm Bump squoosh to the latest version (#29506) 2021-10-06 14:47:48 +00:00
webp_node_enc.js Fix squoosh image optimization for Node.js 18 (#38833) 2022-07-20 12:24:50 -04:00
webp_node_enc.wasm Bump squoosh to the latest version (#29506) 2021-10-06 14:47:48 +00:00