rsnext/packages/next/server/lib/squoosh
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
..
avif Fix squoosh image optimization for Node.js 18 (#38833) 2022-07-20 12:24:50 -04:00
mozjpeg Fix squoosh image optimization for Node.js 18 (#38833) 2022-07-20 12:24:50 -04:00
png Bump squoosh to the latest version (#29506) 2021-10-06 14:47:48 +00:00
resize Bump squoosh to the latest version (#29506) 2021-10-06 14:47:48 +00:00
rotate Bump squoosh to the latest version (#29506) 2021-10-06 14:47:48 +00:00
webp Fix squoosh image optimization for Node.js 18 (#38833) 2022-07-20 12:24:50 -04:00
codecs.ts Bump squoosh to the latest version (#29506) 2021-10-06 14:47:48 +00:00
emscripten-types.d.ts Bump squoosh to the latest version (#29506) 2021-10-06 14:47:48 +00:00
emscripten-utils.ts Bump squoosh to the latest version (#29506) 2021-10-06 14:47:48 +00:00
image_data.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
impl.ts chore: remove git.io (#36479) 2022-04-26 13:47:47 +00:00
LICENSE Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
main.ts Pre-compile more dependencies (#32742) 2022-01-17 15:17:22 +00:00