a6a6117197
## History Previously, we added support for `squoosh` because it was a wasm implementation that "just worked" on all platforms when running `next dev` for the first time. However, it was slow so we always recommended manually installing `sharp` for production use cases running `next build` and `next start`. Now that [`sharp` supports webassembly](https://sharp.pixelplumbing.com/install#webassembly), we no longer need to maintain `squoosh`, so it can be removed. We also don't need to make the user install sharp manually because it can be installed under `optionalDependencies`. I left it optional in case there was some platform that still needed to manually install the wasm variant with `npm install --cpu=wasm32 sharp` such as codesandbox/stackblitz (I don't believe sharp has any fallback built in yet). Since we can guarantee `sharp`, we can also remove `get-orientation` dep and upgrade `image-size` dep. I also moved an [existing `sharp` test](https://github.com/vercel/next.js/pull/56674) into its own fixture since it was unrelated to image optimization. ## Related Issues - Fixes https://github.com/vercel/next.js/issues/41417 - Related https://github.com/vercel/next.js/pull/54670 - Related https://github.com/vercel/next.js/issues/54708 - Related https://github.com/vercel/next.js/issues/44804 - Related https://github.com/vercel/next.js/issues/48820 - Related https://github.com/vercel/next.js/pull/61810 - Related https://github.com/vercel/next.js/pull/61696 - Related https://github.com/vercel/next.js/issues/44685 - Closes https://github.com/vercel/next.js/issues/64362 ## Breaking Change This is a breaking change because newer versions of `sharp` no longer support `yarn@1`. - https://github.com/lovell/sharp/issues/3750 The workaround is to install with `yarn --ignore-engines` flag. Also note that Vercel no longer defaults to yarn when no lockfile is found - https://github.com/vercel/vercel/pull/11131 - https://github.com/vercel/vercel/pull/11242 Closes NEXT-2823
44 lines
3.1 KiB
Text
44 lines
3.1 KiB
Text
# Learn how to add code owners here:
|
|
# https://help.github.com/en/articles/about-code-owners
|
|
|
|
|
|
* @timneutkens @ijjk @shuding @huozhi @feedthejim @ztanner @wyattjoh
|
|
/.git* @vercel/next-js @vercel/devex
|
|
/docs/ @vercel/next-js @vercel/devex
|
|
/errors/ @vercel/next-js @vercel/devex
|
|
/examples/ @vercel/next-js @vercel/devex
|
|
/scripts/ @vercel/next-js
|
|
/.alex* @vercel/next-js @leerob
|
|
/.eslint* @vercel/next-js @leerob
|
|
/.prettier* @vercel/next-js @leerob
|
|
/*.md @vercel/next-js @vercel/devex
|
|
/*.mdx @vercel/next-js @vercel/devex
|
|
/packages/create-next-app/ @vercel/next-js
|
|
/pnpm-lock.yaml @vercel/next-js @vercel/turbopack
|
|
|
|
# Next.js CLI
|
|
|
|
/packages/next/src/bin @timneutkens @ijjk @shuding @samcx
|
|
/packages/next/src/cli @timneutkens @ijjk @shuding @samcx
|
|
|
|
# Image Component (@styfle)
|
|
|
|
/**/*image* @timneutkens @ijjk @shuding @styfle @huozhi @ztanner @vercel/devex
|
|
/**/*image*/** @timneutkens @ijjk @shuding @styfle @huozhi @ztanner @vercel/devex
|
|
/**/*img* @timneutkens @ijjk @shuding @styfle @huozhi @ztanner @vercel/devex
|
|
/packages/next/client/use-intersection.tsx @timneutkens @ijjk @shuding @styfle
|
|
/packages/next/server/serve-static.ts @timneutkens @ijjk @shuding @styfle @huozhi @ztanner
|
|
/packages/next/server/config.ts @timneutkens @ijjk @shuding @styfle @huozhi @ztanner
|
|
|
|
# Tooling & Telemetry
|
|
|
|
/packages/next/src/build/ @timneutkens @ijjk @shuding @huozhi @ztanner @feedthejim @vercel/turbopack
|
|
/packages/next/src/server/lib/router-utils/setup-dev-bundler.ts @timneutkens @ijjk @shuding @huozhi @feedthejim @ztanner @wyattjoh @vercel/turbopack
|
|
/packages/next/src/telemetry/ @timneutkens @ijjk @shuding @padmaia
|
|
/packages/next-swc/ @timneutkens @ijjk @shuding @huozhi @vercel/turbopack
|
|
Cargo.toml @timneutkens @ijjk @shuding @huozhi @vercel/turbopack
|
|
Cargo.lock @timneutkens @ijjk @shuding @huozhi @vercel/turbopack
|
|
/.cargo/config.toml @timneutkens @ijjk @shuding @huozhi @vercel/turbopack
|
|
/.config/nextest.toml @timneutkens @ijjk @shuding @huozhi @vercel/turbopack
|
|
/test/build-turbopack-dev-tests-manifest.js @timneutkens @ijjk @shuding @huozhi @vercel/turbopack
|
|
/test/turbopack-dev-tests-manifest.json @timneutkens @ijjk @shuding @huozhi @vercel/turbopack
|