-
Notifications
You must be signed in to change notification settings - Fork 26k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't fail build when optional dependency sharp is missing #20738
Conversation
Stats from current PRDefault Server Mode (Decrease detected ✓)General
Page Load Tests Overall decrease
|
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.991 | 1.978 | -0.01 |
/ avg req/sec | 1255.7 | 1263.72 | +8.02 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.224 | 1.244 | |
/error-in-render avg req/sec | 2042.29 | 2010.22 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
677f882d2ed8..396f.js gzip | 13 kB | 13 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-a9a6f0d..a96d.js gzip | 6.59 kB | 6.59 kB | ✓ |
webpack-50be..df5b.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.3 kB | 59.3 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
polyfills-81..14d7.js gzip | 31.2 kB | 31.2 kB | ✓ |
Overall change | 31.2 kB | 31.2 kB | ✓ |
Client Pages
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_app-b6fc6bc..222c.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-e2ffa..0f3f.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-010c20..8411.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-705099c..c35d.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_buildManifest.js gzip | 323 B | 323 B | ✓ |
Overall change | 323 B | 323 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
index.html gzip | 615 B | 615 B | ✓ |
link.html gzip | 621 B | 621 B | ✓ |
withRouter.html gzip | 607 B | 607 B | ✓ |
Overall change | 1.84 kB | 1.84 kB | ✓ |
Serverless Mode
General
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
buildDuration | 11.9s | 11.7s | -226ms |
nodeModulesSize | 80.6 MB | 80.6 MB | ✓ |
Client Bundles (main, webpack, commons)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
677f882d2ed8..396f.js gzip | 13 kB | 13 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-a9a6f0d..a96d.js gzip | 6.59 kB | 6.59 kB | ✓ |
webpack-50be..df5b.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.3 kB | 59.3 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
polyfills-81..14d7.js gzip | 31.2 kB | 31.2 kB | ✓ |
Overall change | 31.2 kB | 31.2 kB | ✓ |
Client Pages
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_app-b6fc6bc..222c.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-e2ffa..0f3f.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-010c20..8411.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-705099c..c35d.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_buildManifest.js gzip | 323 B | 323 B | ✓ |
Overall change | 323 B | 323 B | ✓ |
Serverless bundles
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_error.js | 1 MB | 1 MB | ✓ |
404.html | 2.67 kB | 2.67 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 1 MB | 1 MB | ✓ |
link.js | 1.06 MB | 1.06 MB | ✓ |
routerDirect.js | 1.05 MB | 1.05 MB | ✓ |
withRouter.js | 1.05 MB | 1.05 MB | ✓ |
Overall change | 5.17 MB | 5.17 MB | ✓ |
Failing test suitesCommit: 270e2d0 test/integration/amphtml-fragment-style/test/index.test.js
Expand output● AMP Fragment Styles › adds styles from fragment in AMP mode correctly
● Test suite failed to run
test/integration/absolute-assetprefix/test/index.test.js
Expand output● absolute assetPrefix with path prefix › should not fetch static data from a CDN
● absolute assetPrefix with path prefix › should fetch from cache correctly
● absolute assetPrefix with path prefix › should work with getStaticPaths prerendered
● absolute assetPrefix with path prefix › should work with getStaticPaths fallback
● absolute assetPrefix with path prefix › should work with getServerSideProps
● Test suite failed to run
test/integration/amphtml-custom-optimizer/test/index.test.js
Expand output● AMP Custom Optimizer › should build and start for static page
● AMP Custom Optimizer › should build and start for dynamic page
test/integration/app-document-style-fragment/test/index.test.js
Expand output● Custom Document Fragment Styles › correctly adds styles from fragment styles key
● Test suite failed to run
test/integration/404-page-app/test/index.test.js
Expand output● 404 Page Support with _app › production mode › should build successfully
● 404 Page Support with _app › production mode › should not output static 404 if _app has getInitialProps
● 404 Page Support with _app › production mode › should still use 404 page
● Test suite failed to run
test/integration/css-modules/test/index.test.js
Expand output● Basic CSS Module Support › should have compiled successfully
● Basic CSS Module Support › should've emitted a single CSS file
● Basic CSS Module Support › should've injected the CSS on server render
● 3rd Party CSS Module Support › should have compiled successfully
● 3rd Party CSS Module Support › should've emitted a single CSS file
● 3rd Party CSS Module Support › should've injected the CSS on server render
● Has CSS Module in computed styles in Production › should have compiled successfully
● Has CSS Module in computed styles in Production › should have CSS for page
● Invalid CSS Module Usage in node_modules › should fail to build
● Invalid Global CSS Module Usage in node_modules › should fail to build
● Valid CSS Module Usage from within node_modules › should have compiled successfully
● Valid CSS Module Usage from within node_modules › should've prerendered with relevant data
● Valid CSS Module Usage from within node_modules › should've emitted a single CSS file
● Valid Nested CSS Module Usage from within node_modules › should have compiled successfully
● Valid Nested CSS Module Usage from within node_modules › should've prerendered with relevant data
● Valid Nested CSS Module Usage from within node_modules › should've emitted a single CSS file
● CSS Module Composes Usage (Basic) › should have compiled successfully
● CSS Module Composes Usage (Basic) › should've emitted a single CSS file
● CSS Module Composes Usage (External) › should have compiled successfully
● CSS Module Composes Usage (External) › should've emitted a single CSS file
● Dynamic Route CSS Module Usage › should have compiled successfully
● Dynamic Route CSS Module Usage › should apply styles correctly
● Dynamic Route CSS Module Usage › should've emitted a single CSS file
● Catch-all Route CSS Module Usage › should have compiled successfully
● Catch-all Route CSS Module Usage › should apply styles correctly
● Catch-all Route CSS Module Usage › should've emitted a single CSS file
● Test suite failed to run
● Test suite failed to run
● Test suite failed to run
● Test suite failed to run
● Test suite failed to run
● Test suite failed to run
● Test suite failed to run
|
Stats from current PRDefault Server Mode (Decrease detected ✓)General Overall increase
|
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
buildDuration | 10.6s | 10.5s | -124ms |
nodeModulesSize | 80.6 MB | 80.6 MB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.068 | 2.12 | |
/ avg req/sec | 1208.63 | 1179.13 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.293 | 1.307 | |
/error-in-render avg req/sec | 1933.08 | 1912.85 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
677f882d2ed8..396f.js gzip | 13 kB | 13 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-a9a6f0d..a96d.js gzip | 6.59 kB | 6.59 kB | ✓ |
webpack-50be..df5b.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.3 kB | 59.3 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
polyfills-81..14d7.js gzip | 31.2 kB | 31.2 kB | ✓ |
Overall change | 31.2 kB | 31.2 kB | ✓ |
Client Pages
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_app-b6fc6bc..222c.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-e2ffa..0f3f.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-010c20..8411.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-705099c..c35d.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_buildManifest.js gzip | 323 B | 323 B | ✓ |
Overall change | 323 B | 323 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
index.html gzip | 615 B | 615 B | ✓ |
link.html gzip | 621 B | 621 B | ✓ |
withRouter.html gzip | 607 B | 607 B | ✓ |
Overall change | 1.84 kB | 1.84 kB | ✓ |
Serverless Mode
General Overall increase ⚠️
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
buildDuration | 12.7s | 12.7s | |
nodeModulesSize | 80.6 MB | 80.6 MB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
677f882d2ed8..396f.js gzip | 13 kB | 13 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-a9a6f0d..a96d.js gzip | 6.59 kB | 6.59 kB | ✓ |
webpack-50be..df5b.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.3 kB | 59.3 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
polyfills-81..14d7.js gzip | 31.2 kB | 31.2 kB | ✓ |
Overall change | 31.2 kB | 31.2 kB | ✓ |
Client Pages
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_app-b6fc6bc..222c.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-e2ffa..0f3f.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-010c20..8411.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-705099c..c35d.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_buildManifest.js gzip | 323 B | 323 B | ✓ |
Overall change | 323 B | 323 B | ✓ |
Serverless bundles
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_error.js | 1 MB | 1 MB | ✓ |
404.html | 2.67 kB | 2.67 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 1 MB | 1 MB | ✓ |
link.js | 1.06 MB | 1.06 MB | ✓ |
routerDirect.js | 1.05 MB | 1.05 MB | ✓ |
withRouter.js | 1.05 MB | 1.05 MB | ✓ |
Overall change | 5.17 MB | 5.17 MB | ✓ |
Failing test suitesCommit: f6ce0b4 test/integration/image-optimizer/test/index.test.js Expand output● Test suite failed to run
|
I have added a separate test job that excludes sharp but I can imagine that this increases the CI time too much to be acceptable. |
652c92a
to
cfd7d81
Compare
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
buildDuration | 9.3s | 9.5s | |
nodeModulesSize | 80.8 MB | 80.8 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.836 | 1.849 | |
/ avg req/sec | 1361.34 | 1352.16 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.212 | 1.158 | -0.05 |
/error-in-render avg req/sec | 2063.32 | 2159.31 | +95.99 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
677f882d2ed8..89aa.js gzip | 13.1 kB | 13.1 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-dba4ec1..27c0.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-50be..df5b.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
polyfills-81..14d7.js gzip | 31.2 kB | 31.2 kB | ✓ |
Overall change | 31.2 kB | 31.2 kB | ✓ |
Client Pages
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_app-b6fc6bc..222c.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-e2ffa..0f3f.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-010c20..8411.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-d979103..c5ff.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_buildManifest.js gzip | 323 B | 323 B | ✓ |
Overall change | 323 B | 323 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
index.html gzip | 614 B | 614 B | ✓ |
link.html gzip | 619 B | 619 B | ✓ |
withRouter.html gzip | 606 B | 606 B | ✓ |
Overall change | 1.84 kB | 1.84 kB | ✓ |
Serverless Mode
General Overall increase ⚠️
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
buildDuration | 11.3s | 11.2s | -105ms |
nodeModulesSize | 80.8 MB | 80.8 MB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
677f882d2ed8..89aa.js gzip | 13.1 kB | 13.1 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-dba4ec1..27c0.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-50be..df5b.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
polyfills-81..14d7.js gzip | 31.2 kB | 31.2 kB | ✓ |
Overall change | 31.2 kB | 31.2 kB | ✓ |
Client Pages
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_app-b6fc6bc..222c.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-e2ffa..0f3f.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-010c20..8411.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-d979103..c5ff.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_buildManifest.js gzip | 323 B | 323 B | ✓ |
Overall change | 323 B | 323 B | ✓ |
Serverless bundles
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_error.js | 1 MB | 1 MB | ✓ |
404.html | 2.67 kB | 2.67 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 1 MB | 1 MB | ✓ |
link.js | 1.06 MB | 1.06 MB | ✓ |
routerDirect.js | 1.05 MB | 1.05 MB | ✓ |
withRouter.js | 1.05 MB | 1.05 MB | ✓ |
Overall change | 5.18 MB | 5.18 MB | ✓ |
Stats from current PRDefault Server Mode (Decrease detected ✓)General Overall increase
|
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
buildDuration | 10.8s | 10.7s | -139ms |
nodeModulesSize | 80.8 MB | 80.8 MB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.169 | 2.171 | 0 |
/ avg req/sec | 1152.44 | 1151.73 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.584 | 1.639 | |
/error-in-render avg req/sec | 1577.95 | 1525.11 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
677f882d2ed8..89aa.js gzip | 13.1 kB | 13.1 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-dba4ec1..27c0.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-50be..df5b.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
polyfills-81..14d7.js gzip | 31.2 kB | 31.2 kB | ✓ |
Overall change | 31.2 kB | 31.2 kB | ✓ |
Client Pages
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_app-b6fc6bc..222c.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-e2ffa..0f3f.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-010c20..8411.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-d979103..c5ff.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_buildManifest.js gzip | 323 B | 323 B | ✓ |
Overall change | 323 B | 323 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
index.html gzip | 614 B | 614 B | ✓ |
link.html gzip | 619 B | 619 B | ✓ |
withRouter.html gzip | 606 B | 606 B | ✓ |
Overall change | 1.84 kB | 1.84 kB | ✓ |
Serverless Mode
General Overall increase ⚠️
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
buildDuration | 12.5s | 12.6s | |
nodeModulesSize | 80.8 MB | 80.8 MB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
677f882d2ed8..89aa.js gzip | 13.1 kB | 13.1 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-dba4ec1..27c0.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-50be..df5b.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.4 kB | 59.4 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
polyfills-81..14d7.js gzip | 31.2 kB | 31.2 kB | ✓ |
Overall change | 31.2 kB | 31.2 kB | ✓ |
Client Pages
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_app-b6fc6bc..222c.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-e2ffa..0f3f.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-010c20..8411.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-d979103..c5ff.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_buildManifest.js gzip | 323 B | 323 B | ✓ |
Overall change | 323 B | 323 B | ✓ |
Serverless bundles
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_error.js | 1 MB | 1 MB | ✓ |
404.html | 2.67 kB | 2.67 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 1 MB | 1 MB | ✓ |
link.js | 1.06 MB | 1.06 MB | ✓ |
routerDirect.js | 1.05 MB | 1.05 MB | ✓ |
withRouter.js | 1.05 MB | 1.05 MB | ✓ |
Overall change | 5.18 MB | 5.18 MB | ✓ |
I had accidently left this PR in draft state. |
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
buildDuration | 9.8s | 9.9s | |
nodeModulesSize | 75.1 MB | 75.1 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.955 | 1.947 | -0.01 |
/ avg req/sec | 1278.85 | 1284.3 | +5.45 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.215 | 1.205 | -0.01 |
/error-in-render avg req/sec | 2058.18 | 2075.23 | +17.05 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
677f882d2ed8..49c4.js gzip | 13.1 kB | 13.1 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.5 kB | 59.5 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31.3 kB | 31.3 kB | ✓ |
Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
Overall change | 321 B | 321 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
index.html gzip | 615 B | 615 B | ✓ |
link.html gzip | 621 B | 621 B | ✓ |
withRouter.html gzip | 609 B | 609 B | ✓ |
Overall change | 1.84 kB | 1.84 kB | ✓ |
Serverless Mode
General Overall increase ⚠️
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
buildDuration | 11.7s | 11.6s | -156ms |
nodeModulesSize | 75.1 MB | 75.1 MB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
677f882d2ed8..49c4.js gzip | 13.1 kB | 13.1 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-HASH.js gzip | 6.63 kB | 6.63 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
Overall change | 59.5 kB | 59.5 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31.3 kB | 31.3 kB | ✓ |
Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_app-2a09aa2..4a98.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-8b758..aef6.js gzip | 3.46 kB | 3.46 kB | ✓ |
hooks-c71ae4..70cd.js gzip | 887 B | 887 B | ✓ |
index-bbee2f..528b.js gzip | 227 B | 227 B | ✓ |
link-7faf09b..eba4.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..bf84.js gzip | 303 B | 303 B | ✓ |
withRouter-a..5826.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.09 kB | 8.09 kB | ✓ |
Client Build Manifests
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
Overall change | 321 B | 321 B | ✓ |
Serverless bundles
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_error.js | 1 MB | 1 MB | ✓ |
404.html | 2.67 kB | 2.67 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 1 MB | 1 MB | ✓ |
link.js | 1.06 MB | 1.06 MB | ✓ |
routerDirect.js | 1.06 MB | 1.06 MB | ✓ |
withRouter.js | 1.06 MB | 1.06 MB | ✓ |
Overall change | 5.19 MB | 5.19 MB | ✓ |
Webpack 5 Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
buildDuration | 11.9s | 11.8s | -115ms |
nodeModulesSize | 75.1 MB | 75.1 MB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.907 | 1.967 | |
/ avg req/sec | 1311.23 | 1270.8 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.191 | 1.205 | |
/error-in-render avg req/sec | 2099.35 | 2075.29 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
597-6c246419..806f.js gzip | 13 kB | 13 kB | ✓ |
framework.HASH.js gzip | 39.3 kB | 39.3 kB | ✓ |
main-HASH.js gzip | 6.58 kB | 6.58 kB | ✓ |
webpack-HASH.js gzip | 954 B | 954 B | ✓ |
Overall change | 59.9 kB | 59.9 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31.1 kB | 31.1 kB | ✓ |
Overall change | 31.1 kB | 31.1 kB | ✓ |
Client Pages
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_app-6e0a903..b885.js gzip | 1.26 kB | 1.26 kB | ✓ |
_error-7a100..a392.js gzip | 3.38 kB | 3.38 kB | ✓ |
hooks-f7e199..11b9.js gzip | 904 B | 904 B | ✓ |
index-3dc22c..ffbb.js gzip | 232 B | 232 B | ✓ |
link-c010d28..b60a.js gzip | 1.63 kB | 1.63 kB | ✓ |
routerDirect..323a.js gzip | 308 B | 308 B | ✓ |
withRouter-a..2ef8.js gzip | 304 B | 304 B | ✓ |
Overall change | 8.02 kB | 8.02 kB | ✓ |
Client Build Manifests
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
_buildManifest.js gzip | 299 B | 299 B | ✓ |
Overall change | 299 B | 299 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | jorrit/next.js sharpoptional | Change | |
---|---|---|---|
index.html gzip | 586 B | 586 B | ✓ |
link.html gzip | 593 B | 593 B | ✓ |
withRouter.html gzip | 579 B | 579 B | ✓ |
Overall change | 1.76 kB | 1.76 kB | ✓ |
Diffs
Diff for index.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/",
"query": {},
- "buildId": "ISeX8XvBagrzAZPxbfJke",
+ "buildId": "HTtWLQ4AQ7gTnnUnJ4dqs",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/ISeX8XvBagrzAZPxbfJke/_buildManifest.js"
+ src="/_next/static/HTtWLQ4AQ7gTnnUnJ4dqs/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/ISeX8XvBagrzAZPxbfJke/_ssgManifest.js"
+ src="/_next/static/HTtWLQ4AQ7gTnnUnJ4dqs/_ssgManifest.js"
async=""
></script>
</body>
Diff for link.html
@@ -48,7 +48,7 @@
"props": { "pageProps": {} },
"page": "/link",
"query": {},
- "buildId": "ISeX8XvBagrzAZPxbfJke",
+ "buildId": "HTtWLQ4AQ7gTnnUnJ4dqs",
"isFallback": false,
"gip": true
}
@@ -82,11 +82,11 @@
async=""
></script>
<script
- src="/_next/static/ISeX8XvBagrzAZPxbfJke/_buildManifest.js"
+ src="/_next/static/HTtWLQ4AQ7gTnnUnJ4dqs/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/ISeX8XvBagrzAZPxbfJke/_ssgManifest.js"
+ src="/_next/static/HTtWLQ4AQ7gTnnUnJ4dqs/_ssgManifest.js"
async=""
></script>
</body>
Diff for withRouter.html
@@ -43,7 +43,7 @@
"props": { "pageProps": {} },
"page": "/withRouter",
"query": {},
- "buildId": "ISeX8XvBagrzAZPxbfJke",
+ "buildId": "HTtWLQ4AQ7gTnnUnJ4dqs",
"isFallback": false,
"gip": true
}
@@ -77,11 +77,11 @@
async=""
></script>
<script
- src="/_next/static/ISeX8XvBagrzAZPxbfJke/_buildManifest.js"
+ src="/_next/static/HTtWLQ4AQ7gTnnUnJ4dqs/_buildManifest.js"
async=""
></script>
<script
- src="/_next/static/ISeX8XvBagrzAZPxbfJke/_ssgManifest.js"
+ src="/_next/static/HTtWLQ4AQ7gTnnUnJ4dqs/_ssgManifest.js"
async=""
></script>
</body>
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
Fixes #20456