rsnext/packages/next/build
Joe Haddad 99a4ea6e9a
feat(next/image): remove sharp for wasm variant (#22253)
This pull request removes the native `sharp` dependency (which doesn't work on some Linux variants, nor **M1 Mac**) and replaces it with a wasm equivalent.

It also reduces Next.js' installed size by 27.3 MB.

The code is adapted from the [Squoosh CLI](https://github.com/GoogleChromeLabs/squoosh).

This PR still supports:

- Rotation normalization
- Resizing
- PNG
- JPEG
- Webp

However, it (temporarily) removes support for:
- Resizing Gifs
- Resizing Tiff

(these formats still get served and rendered correctly by the image component)

---

Fixes #20456
Closes #20738
Closes #21762
2021-02-18 10:23:24 +00:00
..
babel feat: Webpack loader inlining (#21127) 2021-01-15 01:51:45 +00:00
output Fix hostname message in dev/start (#20409) 2021-01-25 16:13:12 +01:00
plugins perf(next): use require.resolve instead of resolve (#19518) 2021-01-11 14:43:08 +00:00
polyfills Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
profiler Added no-shadow rule to eslint (#13645) 2020-06-01 21:00:22 +00:00
webpack Experimental feature - fix optimizeCss flag for serverless deployments (#21790) 2021-02-17 22:52:43 +00:00
compiler.ts feat: webpack inlining with configuration for v4 / v5 (#20598) 2021-01-13 20:59:08 -05:00
entries.ts Ensure i18n custom routes resolves correctly (#19766) 2020-12-04 10:14:55 +00:00
generate-build-id.ts Update references to zeit/next.js (#13463) 2020-05-27 17:51:11 -04:00
index.ts feat(next/image): remove sharp for wasm variant (#22253) 2021-02-18 10:23:24 +00:00
is-writeable.ts Use fs.promises instead of promisify (#12026) 2020-05-02 00:10:19 -04:00
spinner.ts [Feature] Progress bar for static build (#15297) 2020-08-04 09:58:23 +02:00
tracer.ts Check if parentspan is provided in profiler (#22061) 2021-02-12 11:17:38 +01:00
utils.ts Experimental feature - fix optimizeCss flag for serverless deployments (#21790) 2021-02-17 22:52:43 +00:00
webpack-config.ts Add nccing AMP optimizer (#21980) 2021-02-11 09:55:56 +00:00
write-build-id.ts Use fs.promises instead of promisify (#12026) 2020-05-02 00:10:19 -04:00