-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Making font optimization as default #19250
Conversation
prateekbh
commented
Nov 17, 2020
•
edited
Loading
edited
- Makes font optimizations as default
- Fixes Font Optimization produces empty font definitions #19159
Failing test suitesCommit: 46fadf8 test/integration/app-document/test/index.test.js
Expand output● Document and App › Rendering via HTTP › _document › It has a custom html class
● Document and App › Rendering via HTTP › _document › It has a custom body class
● Document and App › Rendering via HTTP › _document › It injects custom head tags
● Document and App › Rendering via HTTP › _document › It passes props from Document.getInitialProps to Document
● Document and App › Rendering via HTTP › _document › It renders ctx.renderPage with enhancer correctly
● Document and App › Rendering via HTTP › _document › It renders ctx.renderPage with enhanceComponent correctly
● Document and App › Rendering via HTTP › _document › It renders ctx.renderPage with enhanceApp correctly
● Document and App › Rendering via HTTP › _document › It renders ctx.renderPage with enhanceApp and enhanceComponent correctly
● Document and App › Rendering via HTTP › _app › It shows a custom tag
● Document and App › Rendering via HTTP › _app › It should share module state with pages
● Document and App › Rendering via HTTP › _app › It should show valid error when thrown in _app getInitialProps
● Document and App › Client side › should detect the changes to pages/_app.js and display it
● Document and App › Client side › should detect the changes to pages/_document.js and display it
● Document and App › Client side › should keep state between page navigations
● Document and App › Client side › It should share module state with pages
test/integration/build-output/test/index.test.js
Expand output● Build Output › Basic Application Output › should not deviate from snapshot
|
Failing test suitesCommit: 97932d4 test/integration/app-document/test/index.test.js
Expand output● Document and App › Rendering via HTTP › _document › It has a custom html class
● Document and App › Rendering via HTTP › _document › It has a custom body class
● Document and App › Rendering via HTTP › _document › It injects custom head tags
● Document and App › Rendering via HTTP › _document › It passes props from Document.getInitialProps to Document
● Document and App › Rendering via HTTP › _document › It renders ctx.renderPage with enhancer correctly
● Document and App › Rendering via HTTP › _document › It renders ctx.renderPage with enhanceComponent correctly
● Document and App › Rendering via HTTP › _document › It renders ctx.renderPage with enhanceApp correctly
● Document and App › Rendering via HTTP › _document › It renders ctx.renderPage with enhanceApp and enhanceComponent correctly
● Document and App › Rendering via HTTP › _app › It shows a custom tag
● Document and App › Rendering via HTTP › _app › It should share module state with pages
● Document and App › Rendering via HTTP › _app › It should show valid error when thrown in _app getInitialProps
● Document and App › Client side › should detect the changes to pages/_app.js and display it
● Document and App › Client side › should detect the changes to pages/_document.js and display it
● Document and App › Client side › should keep state between page navigations
● Document and App › Client side › It should share module state with pages
test/integration/build-output/test/index.test.js
Expand output● Build Output › Basic Application Output › should not deviate from snapshot
|
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 12s | 12.1s | |
nodeModulesSize | 85 MB | 85 MB | -3.4 kB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.217 | 2.482 | |
/ avg req/sec | 1127.8 | 1007.22 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.201 | 1.217 | |
/error-in-render avg req/sec | 2081.93 | 2054.4 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..776c.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-e1cf8de..941b.js gzip | 6.53 kB | 6.53 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 58.9 kB | 58.9 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.26 kB | 8.26 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-30e5038..dule.js gzip | 5.64 kB | 5.64 kB | ✓ |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
Overall change | 53.6 kB | 53.6 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | 3.69 kB | |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 8.01 kB | 8.27 kB |
Client Pages Modern Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | 2.57 kB | |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-9741e7f..dule.js gzip | 1.55 kB | 1.55 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
Overall change | 5.64 kB | 5.92 kB |
Client Build Manifests
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 329 B | 329 B | ✓ |
Overall change | 650 B | 650 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
index.html gzip | 967 B | 967 B | ✓ |
link.html gzip | 975 B | 975 B | ✓ |
withRouter.html gzip | 960 B | 960 B | ✓ |
Overall change | 2.9 kB | 2.9 kB | ✓ |
Diffs
Diff for _buildManifest.js
@@ -2,7 +2,7 @@ self.__BUILD_MANIFEST = {
__rewrites: [],
"/": ["static\u002Fchunks\u002Fpages\u002Findex-283eed3c1520dcc26e8d.js"],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-760f653e71e48010adf7.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-ed915e640456202180cf.js"
],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-880757f1d73d6b241fc3.js"
Diff for _buildManifest.module.js
@@ -4,7 +4,7 @@ self.__BUILD_MANIFEST = {
"static\u002Fchunks\u002Fpages\u002Findex-dc79232991b9d18c3260.module.js"
],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-b59ce1d1aef722bdb502.module.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-c140c25017f2d86247a3.module.js"
],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-56fa58a6f0993d7d36d7.module.js"
Diff for _error-760f6..48010adf7.js
@@ -535,8 +535,23 @@ Also adds support for deduplicated `key` properties
.map(function(c, i) {
var key = c.key || i;
- if (false) {
- var newProps;
+ if (!props.inAmpMode) {
+ if (
+ c.type === "link" &&
+ c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
+ ["https://fonts.googleapis.com/css"].some(function(url) {
+ return c.props["href"].startsWith(url);
+ })
+ ) {
+ var newProps = _objectSpread({}, c.props || {});
+
+ newProps["data-href"] = newProps["href"];
+ newProps["href"] = undefined;
+ return /*#__PURE__*/ _react["default"].cloneElement(
+ c,
+ newProps
+ );
+ }
}
return /*#__PURE__*/ _react["default"].cloneElement(c, {
Diff for _error-b59ce..02.module.js
@@ -446,8 +446,20 @@ Also adds support for deduplicated `key` properties
.map((c, i) => {
var key = c.key || i;
- if (false) {
- var newProps;
+ if (!props.inAmpMode) {
+ if (
+ c.type === "link" &&
+ c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
+ ["https://fonts.googleapis.com/css"].some(url =>
+ c.props["href"].startsWith(url)
+ )
+ ) {
+ var newProps = _objectSpread({}, c.props || {});
+
+ newProps["data-href"] = newProps["href"];
+ newProps["href"] = undefined;
+ return /*#__PURE__*/ _react.default.cloneElement(c, newProps);
+ }
}
return /*#__PURE__*/ _react.default.cloneElement(c, {
Serverless Mode (Increase detected ⚠️ )
General Overall decrease ✓
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 13.8s | 13.6s | -180ms |
nodeModulesSize | 85 MB | 85 MB | -3.4 kB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..776c.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-e1cf8de..941b.js gzip | 6.53 kB | 6.53 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 58.9 kB | 58.9 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.26 kB | 8.26 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-30e5038..dule.js gzip | 5.64 kB | 5.64 kB | ✓ |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
Overall change | 53.6 kB | 53.6 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | N/A | N/A |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
_error-9a3cb..7f54.js gzip | N/A | 3.69 kB | N/A |
Overall change | 8.01 kB | 8.27 kB |
Client Pages Modern Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | N/A | N/A |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-9741e7f..dule.js gzip | 1.55 kB | 1.55 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
_error-b82a7..dule.js gzip | N/A | 2.57 kB | N/A |
Overall change | 5.64 kB | 5.92 kB |
Client Build Manifests
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 329 B | 329 B | ✓ |
Overall change | 650 B | 650 B | ✓ |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_error.js | 918 kB | 919 kB | |
404.html | 4.61 kB | 4.61 kB | ✓ |
hooks.html | 3.86 kB | 3.86 kB | ✓ |
index.js | 918 kB | 919 kB | |
link.js | 977 kB | 978 kB | |
routerDirect.js | 969 kB | 970 kB | |
withRouter.js | 969 kB | 970 kB | |
Overall change | 4.76 MB | 4.76 MB |
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 12.2s | 11.8s | -343ms |
nodeModulesSize | 85 MB | 85 MB | -3.4 kB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.157 | 2.377 | |
/ avg req/sec | 1158.78 | 1051.94 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.147 | 1.129 | -0.02 |
/error-in-render avg req/sec | 2180.03 | 2214.86 | +34.83 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..776c.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-e1cf8de..941b.js gzip | 6.53 kB | 6.53 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 58.9 kB | 58.9 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.26 kB | 8.26 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-30e5038..dule.js gzip | 5.64 kB | 5.64 kB | ✓ |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
Overall change | 53.6 kB | 53.6 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | 3.69 kB | |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 8.01 kB | 8.27 kB |
Client Pages Modern Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | 2.57 kB | |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-9741e7f..dule.js gzip | 1.55 kB | 1.55 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
Overall change | 5.64 kB | 5.92 kB |
Client Build Manifests
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 329 B | 329 B | ✓ |
Overall change | 650 B | 650 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
index.html gzip | 967 B | 967 B | ✓ |
link.html gzip | 975 B | 975 B | ✓ |
withRouter.html gzip | 960 B | 960 B | ✓ |
Overall change | 2.9 kB | 2.9 kB | ✓ |
Diffs
Diff for _buildManifest.js
@@ -2,7 +2,7 @@ self.__BUILD_MANIFEST = {
__rewrites: [],
"/": ["static\u002Fchunks\u002Fpages\u002Findex-283eed3c1520dcc26e8d.js"],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-760f653e71e48010adf7.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-ed915e640456202180cf.js"
],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-880757f1d73d6b241fc3.js"
Diff for _buildManifest.module.js
@@ -4,7 +4,7 @@ self.__BUILD_MANIFEST = {
"static\u002Fchunks\u002Fpages\u002Findex-dc79232991b9d18c3260.module.js"
],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-b59ce1d1aef722bdb502.module.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-c140c25017f2d86247a3.module.js"
],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-56fa58a6f0993d7d36d7.module.js"
Diff for _error-760f6..48010adf7.js
@@ -535,8 +535,23 @@ Also adds support for deduplicated `key` properties
.map(function(c, i) {
var key = c.key || i;
- if (false) {
- var newProps;
+ if (!props.inAmpMode) {
+ if (
+ c.type === "link" &&
+ c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
+ ["https://fonts.googleapis.com/css"].some(function(url) {
+ return c.props["href"].startsWith(url);
+ })
+ ) {
+ var newProps = _objectSpread({}, c.props || {});
+
+ newProps["data-href"] = newProps["href"];
+ newProps["href"] = undefined;
+ return /*#__PURE__*/ _react["default"].cloneElement(
+ c,
+ newProps
+ );
+ }
}
return /*#__PURE__*/ _react["default"].cloneElement(c, {
Diff for _error-b59ce..02.module.js
@@ -446,8 +446,20 @@ Also adds support for deduplicated `key` properties
.map((c, i) => {
var key = c.key || i;
- if (false) {
- var newProps;
+ if (!props.inAmpMode) {
+ if (
+ c.type === "link" &&
+ c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
+ ["https://fonts.googleapis.com/css"].some(url =>
+ c.props["href"].startsWith(url)
+ )
+ ) {
+ var newProps = _objectSpread({}, c.props || {});
+
+ newProps["data-href"] = newProps["href"];
+ newProps["href"] = undefined;
+ return /*#__PURE__*/ _react.default.cloneElement(c, newProps);
+ }
}
return /*#__PURE__*/ _react.default.cloneElement(c, {
Serverless Mode (Increase detected ⚠️ )
General Overall decrease ✓
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 13.2s | 13.3s | |
nodeModulesSize | 85 MB | 85 MB | -3.4 kB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..776c.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-e1cf8de..941b.js gzip | 6.53 kB | 6.53 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 58.9 kB | 58.9 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.26 kB | 8.26 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-30e5038..dule.js gzip | 5.64 kB | 5.64 kB | ✓ |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
Overall change | 53.6 kB | 53.6 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | N/A | N/A |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
_error-9a3cb..7f54.js gzip | N/A | 3.69 kB | N/A |
Overall change | 8.01 kB | 8.27 kB |
Client Pages Modern Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | N/A | N/A |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-9741e7f..dule.js gzip | 1.55 kB | 1.55 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
_error-b82a7..dule.js gzip | N/A | 2.57 kB | N/A |
Overall change | 5.64 kB | 5.92 kB |
Client Build Manifests
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 329 B | 329 B | ✓ |
Overall change | 650 B | 650 B | ✓ |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_error.js | 918 kB | 919 kB | |
404.html | 4.61 kB | 4.61 kB | ✓ |
hooks.html | 3.86 kB | 3.86 kB | ✓ |
index.js | 918 kB | 919 kB | |
link.js | 977 kB | 978 kB | |
routerDirect.js | 969 kB | 970 kB | |
withRouter.js | 969 kB | 970 kB | |
Overall change | 4.76 MB | 4.76 MB |
Failing test suitesCommit: 6bb937b test/integration/app-document/test/index.test.js
Expand output● Document and App › Rendering via HTTP › _document › It has a custom html class
● Document and App › Rendering via HTTP › _document › It has a custom body class
● Document and App › Rendering via HTTP › _document › It injects custom head tags
● Document and App › Rendering via HTTP › _document › It passes props from Document.getInitialProps to Document
● Document and App › Rendering via HTTP › _document › It renders ctx.renderPage with enhancer correctly
● Document and App › Rendering via HTTP › _document › It renders ctx.renderPage with enhanceComponent correctly
● Document and App › Rendering via HTTP › _document › It renders ctx.renderPage with enhanceApp correctly
● Document and App › Rendering via HTTP › _document › It renders ctx.renderPage with enhanceApp and enhanceComponent correctly
● Document and App › Rendering via HTTP › _app › It shows a custom tag
● Document and App › Rendering via HTTP › _app › It should share module state with pages
● Document and App › Rendering via HTTP › _app › It should show valid error when thrown in _app getInitialProps
● Document and App › Client side › should detect the changes to pages/_app.js and display it
● Document and App › Client side › should detect the changes to pages/_document.js and display it
● Document and App › Client side › should keep state between page navigations
● Document and App › Client side › It should share module state with pages
test/integration/dist-dir/test/index.test.js
Expand output● distDir › With basic usage › should not build the app within the default
● distDir › should handle null/undefined distDir
test/integration/build-output/test/index.test.js
Expand output● Build Output › Basic Application Output › should not deviate from snapshot
|
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 13.6s | 13.8s | |
nodeModulesSize | 85 MB | 85 MB | -3.4 kB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.679 | 2.937 | |
/ avg req/sec | 933.3 | 851.17 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.606 | 1.693 | |
/error-in-render avg req/sec | 1557 | 1476.54 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..776c.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-e1cf8de..941b.js gzip | 6.53 kB | 6.53 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 58.9 kB | 58.9 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.26 kB | 8.26 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-30e5038..dule.js gzip | 5.64 kB | 5.64 kB | ✓ |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
Overall change | 53.6 kB | 53.6 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | 3.69 kB | |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 8.01 kB | 8.27 kB |
Client Pages Modern Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | 2.57 kB | |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-9741e7f..dule.js gzip | 1.55 kB | 1.55 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
Overall change | 5.64 kB | 5.92 kB |
Client Build Manifests
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 329 B | 329 B | ✓ |
Overall change | 650 B | 650 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
index.html gzip | 967 B | 967 B | ✓ |
link.html gzip | 975 B | 975 B | ✓ |
withRouter.html gzip | 960 B | 960 B | ✓ |
Overall change | 2.9 kB | 2.9 kB | ✓ |
Diffs
Diff for _buildManifest.js
@@ -2,7 +2,7 @@ self.__BUILD_MANIFEST = {
__rewrites: [],
"/": ["static\u002Fchunks\u002Fpages\u002Findex-283eed3c1520dcc26e8d.js"],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-760f653e71e48010adf7.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-ed915e640456202180cf.js"
],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-880757f1d73d6b241fc3.js"
Diff for _buildManifest.module.js
@@ -4,7 +4,7 @@ self.__BUILD_MANIFEST = {
"static\u002Fchunks\u002Fpages\u002Findex-dc79232991b9d18c3260.module.js"
],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-b59ce1d1aef722bdb502.module.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-c140c25017f2d86247a3.module.js"
],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-56fa58a6f0993d7d36d7.module.js"
Diff for _error-760f6..48010adf7.js
@@ -535,8 +535,23 @@ Also adds support for deduplicated `key` properties
.map(function(c, i) {
var key = c.key || i;
- if (false) {
- var newProps;
+ if (!props.inAmpMode) {
+ if (
+ c.type === "link" &&
+ c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
+ ["https://fonts.googleapis.com/css"].some(function(url) {
+ return c.props["href"].startsWith(url);
+ })
+ ) {
+ var newProps = _objectSpread({}, c.props || {});
+
+ newProps["data-href"] = newProps["href"];
+ newProps["href"] = undefined;
+ return /*#__PURE__*/ _react["default"].cloneElement(
+ c,
+ newProps
+ );
+ }
}
return /*#__PURE__*/ _react["default"].cloneElement(c, {
Diff for _error-b59ce..02.module.js
@@ -446,8 +446,20 @@ Also adds support for deduplicated `key` properties
.map((c, i) => {
var key = c.key || i;
- if (false) {
- var newProps;
+ if (!props.inAmpMode) {
+ if (
+ c.type === "link" &&
+ c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
+ ["https://fonts.googleapis.com/css"].some(url =>
+ c.props["href"].startsWith(url)
+ )
+ ) {
+ var newProps = _objectSpread({}, c.props || {});
+
+ newProps["data-href"] = newProps["href"];
+ newProps["href"] = undefined;
+ return /*#__PURE__*/ _react.default.cloneElement(c, newProps);
+ }
}
return /*#__PURE__*/ _react.default.cloneElement(c, {
Serverless Mode (Increase detected ⚠️ )
General Overall decrease ✓
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 15.3s | 15.3s | |
nodeModulesSize | 85 MB | 85 MB | -3.4 kB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..776c.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-e1cf8de..941b.js gzip | 6.53 kB | 6.53 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 58.9 kB | 58.9 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.26 kB | 8.26 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-30e5038..dule.js gzip | 5.64 kB | 5.64 kB | ✓ |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
Overall change | 53.6 kB | 53.6 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | N/A | N/A |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
_error-9a3cb..7f54.js gzip | N/A | 3.69 kB | N/A |
Overall change | 8.01 kB | 8.27 kB |
Client Pages Modern Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | N/A | N/A |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-9741e7f..dule.js gzip | 1.55 kB | 1.55 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
_error-b82a7..dule.js gzip | N/A | 2.57 kB | N/A |
Overall change | 5.64 kB | 5.92 kB |
Client Build Manifests
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 329 B | 329 B | ✓ |
Overall change | 650 B | 650 B | ✓ |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_error.js | 918 kB | 919 kB | |
404.html | 4.61 kB | 4.61 kB | ✓ |
hooks.html | 3.86 kB | 3.86 kB | ✓ |
index.js | 918 kB | 919 kB | |
link.js | 977 kB | 978 kB | |
routerDirect.js | 969 kB | 970 kB | |
withRouter.js | 969 kB | 970 kB | |
Overall change | 4.76 MB | 4.76 MB |
6bb937b
to
c2e790f
Compare
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 13.8s | 13.8s | -7ms |
nodeModulesSize | 85 MB | 85 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.478 | 2.505 | |
/ avg req/sec | 1009.02 | 997.91 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.334 | 1.3 | -0.03 |
/error-in-render avg req/sec | 1873.53 | 1923.55 | +50.02 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..776c.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-e1cf8de..941b.js gzip | 6.53 kB | 6.53 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 58.9 kB | 58.9 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.26 kB | 8.26 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-30e5038..dule.js gzip | 5.64 kB | 5.64 kB | ✓ |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
Overall change | 53.6 kB | 53.6 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | 3.44 kB | ✓ |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 8.01 kB | 8.01 kB | ✓ |
Client Pages Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | 2.29 kB | ✓ |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-9741e7f..dule.js gzip | 1.55 kB | 1.55 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
Overall change | 5.64 kB | 5.64 kB | ✓ |
Client Build Manifests
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 329 B | 329 B | ✓ |
Overall change | 650 B | 650 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
index.html gzip | 967 B | 967 B | ✓ |
link.html gzip | 975 B | 975 B | ✓ |
withRouter.html gzip | 960 B | 960 B | ✓ |
Overall change | 2.9 kB | 2.9 kB | ✓ |
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 15.4s | 15.5s | |
nodeModulesSize | 85 MB | 85 MB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..776c.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-e1cf8de..941b.js gzip | 6.53 kB | 6.53 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 58.9 kB | 58.9 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.26 kB | 8.26 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-30e5038..dule.js gzip | 5.64 kB | 5.64 kB | ✓ |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
Overall change | 53.6 kB | 53.6 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | 3.44 kB | ✓ |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 8.01 kB | 8.01 kB | ✓ |
Client Pages Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | 2.29 kB | ✓ |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-9741e7f..dule.js gzip | 1.55 kB | 1.55 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
Overall change | 5.64 kB | 5.64 kB | ✓ |
Client Build Manifests
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 329 B | 329 B | ✓ |
Overall change | 650 B | 650 B | ✓ |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_error.js | 918 kB | 918 kB | |
404.html | 4.61 kB | 4.61 kB | ✓ |
hooks.html | 3.86 kB | 3.86 kB | ✓ |
index.js | 918 kB | 918 kB | |
link.js | 977 kB | 977 kB | |
routerDirect.js | 969 kB | 969 kB | |
withRouter.js | 969 kB | 969 kB | |
Overall change | 4.76 MB | 4.76 MB |
Stats from current PRDefault Server Mode (Decrease detected ✓)General Overall increase
|
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 13.2s | 13.2s | -11ms |
nodeModulesSize | 85 MB | 85 MB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.472 | 2.448 | -0.02 |
/ avg req/sec | 1011.5 | 1021.12 | +9.62 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.288 | 1.3 | |
/error-in-render avg req/sec | 1940.34 | 1923.26 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..776c.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-e1cf8de..941b.js gzip | 6.53 kB | 6.53 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 58.9 kB | 58.9 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.26 kB | 8.26 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-30e5038..dule.js gzip | 5.64 kB | 5.64 kB | ✓ |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
Overall change | 53.6 kB | 53.6 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | 3.44 kB | ✓ |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 8.01 kB | 8.01 kB | ✓ |
Client Pages Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | 2.29 kB | ✓ |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-9741e7f..dule.js gzip | 1.55 kB | 1.55 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
Overall change | 5.64 kB | 5.64 kB | ✓ |
Client Build Manifests
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 329 B | 329 B | ✓ |
Overall change | 650 B | 650 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
index.html gzip | 967 B | 967 B | ✓ |
link.html gzip | 975 B | 975 B | ✓ |
withRouter.html gzip | 960 B | 960 B | ✓ |
Overall change | 2.9 kB | 2.9 kB | ✓ |
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 15.4s | 15s | -455ms |
nodeModulesSize | 85 MB | 85 MB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..776c.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-e1cf8de..941b.js gzip | 6.53 kB | 6.53 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 58.9 kB | 58.9 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.26 kB | 8.26 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-30e5038..dule.js gzip | 5.64 kB | 5.64 kB | ✓ |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
Overall change | 53.6 kB | 53.6 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | 3.44 kB | ✓ |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 8.01 kB | 8.01 kB | ✓ |
Client Pages Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | 2.29 kB | ✓ |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-9741e7f..dule.js gzip | 1.55 kB | 1.55 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
Overall change | 5.64 kB | 5.64 kB | ✓ |
Client Build Manifests
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 329 B | 329 B | ✓ |
Overall change | 650 B | 650 B | ✓ |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_error.js | 918 kB | 918 kB | |
404.html | 4.61 kB | 4.61 kB | ✓ |
hooks.html | 3.86 kB | 3.86 kB | ✓ |
index.js | 918 kB | 918 kB | |
link.js | 977 kB | 977 kB | |
routerDirect.js | 969 kB | 969 kB | |
withRouter.js | 969 kB | 969 kB | |
Overall change | 4.76 MB | 4.76 MB |
Stats from current PRDefault Server Mode (Decrease detected ✓)General Overall increase
|
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 14.6s | 14.4s | -242ms |
nodeModulesSize | 85 MB | 85 MB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.575 | 2.746 | |
/ avg req/sec | 971.02 | 910.48 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.466 | 1.645 | |
/error-in-render avg req/sec | 1704.86 | 1519.97 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..776c.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-e1cf8de..941b.js gzip | 6.53 kB | 6.53 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 58.9 kB | 58.9 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.26 kB | 8.26 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-30e5038..dule.js gzip | 5.64 kB | 5.64 kB | ✓ |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
Overall change | 53.6 kB | 53.6 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | 3.44 kB | ✓ |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 8.01 kB | 8.01 kB | ✓ |
Client Pages Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | 2.29 kB | ✓ |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-9741e7f..dule.js gzip | 1.55 kB | 1.55 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
Overall change | 5.64 kB | 5.64 kB | ✓ |
Client Build Manifests
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 329 B | 329 B | ✓ |
Overall change | 650 B | 650 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
index.html gzip | 967 B | 967 B | ✓ |
link.html gzip | 975 B | 975 B | ✓ |
withRouter.html gzip | 960 B | 960 B | ✓ |
Overall change | 2.9 kB | 2.9 kB | ✓ |
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 15.7s | 17.2s | |
nodeModulesSize | 85 MB | 85 MB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..776c.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-e1cf8de..941b.js gzip | 6.53 kB | 6.53 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 58.9 kB | 58.9 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.26 kB | 8.26 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-30e5038..dule.js gzip | 5.64 kB | 5.64 kB | ✓ |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
Overall change | 53.6 kB | 53.6 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | 3.44 kB | ✓ |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 8.01 kB | 8.01 kB | ✓ |
Client Pages Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | 2.29 kB | ✓ |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-9741e7f..dule.js gzip | 1.55 kB | 1.55 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
Overall change | 5.64 kB | 5.64 kB | ✓ |
Client Build Manifests
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 329 B | 329 B | ✓ |
Overall change | 650 B | 650 B | ✓ |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_error.js | 918 kB | 918 kB | |
404.html | 4.61 kB | 4.61 kB | ✓ |
hooks.html | 3.86 kB | 3.86 kB | ✓ |
index.js | 918 kB | 918 kB | |
link.js | 977 kB | 977 kB | |
routerDirect.js | 969 kB | 970 kB | |
withRouter.js | 969 kB | 970 kB | |
Overall change | 4.76 MB | 4.76 MB |
It might still be good to have an option to turn it off though, if you’re using an edge case not supported or there’s an issue with the way Next is handling it way in the future. Not critical though. |
@lachlanjc I thought so too, but wouldn't that be true for every baked in optimization then? |
Sure, that’s totally valid. This just strikes me as something that could have irritating compatibility issues if Next.js trying to be smart broke your fonts with the optimization. |
Failing test suitesCommit: d290e48 test/integration/dist-dir/test/index.test.js
Expand output● distDir › With basic usage › should not build the app within the default
test/integration/build-output/test/index.test.js
Expand output● Build Output › Basic Application Output › should not deviate from snapshot
|
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 11.5s | 10.9s | -602ms |
nodeModulesSize | 85 MB | 85 MB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.041 | 2.353 | |
/ avg req/sec | 1224.72 | 1062.28 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.109 | 1.13 | |
/error-in-render avg req/sec | 2254.1 | 2211.67 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..776c.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-e1cf8de..941b.js gzip | 6.53 kB | 6.53 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 58.9 kB | 58.9 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.26 kB | 8.26 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-30e5038..dule.js gzip | 5.64 kB | 5.64 kB | ✓ |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
Overall change | 53.6 kB | 53.6 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | 3.69 kB | |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 8.01 kB | 8.27 kB |
Client Pages Modern Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | 2.57 kB | |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-9741e7f..dule.js gzip | 1.55 kB | 1.55 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
Overall change | 5.64 kB | 5.92 kB |
Client Build Manifests Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 329 B | 330 B | |
Overall change | 650 B | 651 B |
Rendered Page Sizes
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
index.html gzip | 967 B | 967 B | ✓ |
link.html gzip | 975 B | 975 B | ✓ |
withRouter.html gzip | 960 B | 960 B | ✓ |
Overall change | 2.9 kB | 2.9 kB | ✓ |
Diffs
Diff for _buildManifest.js
@@ -2,7 +2,7 @@ self.__BUILD_MANIFEST = {
__rewrites: [],
"/": ["static\u002Fchunks\u002Fpages\u002Findex-283eed3c1520dcc26e8d.js"],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-760f653e71e48010adf7.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-fd7c6a0057c26cb4d091.js"
],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-880757f1d73d6b241fc3.js"
Diff for _buildManifest.module.js
@@ -4,7 +4,7 @@ self.__BUILD_MANIFEST = {
"static\u002Fchunks\u002Fpages\u002Findex-dc79232991b9d18c3260.module.js"
],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-b59ce1d1aef722bdb502.module.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-8fcba411f7b9a67bc97f.module.js"
],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-56fa58a6f0993d7d36d7.module.js"
Diff for _error-760f6..48010adf7.js
@@ -535,8 +535,23 @@ Also adds support for deduplicated `key` properties
.map(function(c, i) {
var key = c.key || i;
- if (false) {
- var newProps;
+ if (true && !props.inAmpMode) {
+ if (
+ c.type === "link" &&
+ c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
+ ["https://fonts.googleapis.com/css"].some(function(url) {
+ return c.props["href"].startsWith(url);
+ })
+ ) {
+ var newProps = _objectSpread({}, c.props || {});
+
+ newProps["data-href"] = newProps["href"];
+ newProps["href"] = undefined;
+ return /*#__PURE__*/ _react["default"].cloneElement(
+ c,
+ newProps
+ );
+ }
}
return /*#__PURE__*/ _react["default"].cloneElement(c, {
Diff for _error-b59ce..02.module.js
@@ -446,8 +446,20 @@ Also adds support for deduplicated `key` properties
.map((c, i) => {
var key = c.key || i;
- if (false) {
- var newProps;
+ if (true && !props.inAmpMode) {
+ if (
+ c.type === "link" &&
+ c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
+ ["https://fonts.googleapis.com/css"].some(url =>
+ c.props["href"].startsWith(url)
+ )
+ ) {
+ var newProps = _objectSpread({}, c.props || {});
+
+ newProps["data-href"] = newProps["href"];
+ newProps["href"] = undefined;
+ return /*#__PURE__*/ _react.default.cloneElement(c, newProps);
+ }
}
return /*#__PURE__*/ _react.default.cloneElement(c, {
Serverless Mode (Increase detected ⚠️ )
General Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 12.4s | 13s | |
nodeModulesSize | 85 MB | 85 MB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..776c.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-e1cf8de..941b.js gzip | 6.53 kB | 6.53 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 58.9 kB | 58.9 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.26 kB | 8.26 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-30e5038..dule.js gzip | 5.64 kB | 5.64 kB | ✓ |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
Overall change | 53.6 kB | 53.6 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | N/A | N/A |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
_error-1f53d..753f.js gzip | N/A | 3.69 kB | N/A |
Overall change | 8.01 kB | 8.27 kB |
Client Pages Modern Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | N/A | N/A |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-9741e7f..dule.js gzip | 1.55 kB | 1.55 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
_error-c65f4..dule.js gzip | N/A | 2.57 kB | N/A |
Overall change | 5.64 kB | 5.92 kB |
Client Build Manifests Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 329 B | 330 B | |
Overall change | 650 B | 651 B |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_error.js | 918 kB | 918 kB | |
404.html | 4.61 kB | 4.61 kB | ✓ |
hooks.html | 3.86 kB | 3.86 kB | ✓ |
index.js | 918 kB | 919 kB | |
link.js | 977 kB | 977 kB | |
routerDirect.js | 969 kB | 970 kB | |
withRouter.js | 969 kB | 970 kB | |
Overall change | 4.76 MB | 4.76 MB |
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 13.8s | 13.6s | -147ms |
nodeModulesSize | 85 MB | 85 MB | -99 B |
Page Load Tests Overall increase ✓
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.492 | 2.756 | |
/ avg req/sec | 1003.02 | 907.07 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.37 | 1.279 | -0.09 |
/error-in-render avg req/sec | 1824.47 | 1954.5 | +130.03 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..776c.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-e3026b2..6d6d.js gzip | 6.53 kB | 6.53 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 58.9 kB | 58.9 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.26 kB | 8.26 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-1bf8747..dule.js gzip | 5.64 kB | 5.64 kB | ✓ |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
Overall change | 53.6 kB | 53.6 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | 3.69 kB | |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 8.01 kB | 8.27 kB |
Client Pages Modern Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | 2.57 kB | |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-9741e7f..dule.js gzip | 1.55 kB | 1.55 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
Overall change | 5.64 kB | 5.92 kB |
Client Build Manifests Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 329 B | 330 B | |
Overall change | 650 B | 651 B |
Rendered Page Sizes
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
index.html gzip | 968 B | 968 B | ✓ |
link.html gzip | 976 B | 976 B | ✓ |
withRouter.html gzip | 961 B | 961 B | ✓ |
Overall change | 2.9 kB | 2.9 kB | ✓ |
Diffs
Diff for _buildManifest.js
@@ -2,7 +2,7 @@ self.__BUILD_MANIFEST = {
__rewrites: [],
"/": ["static\u002Fchunks\u002Fpages\u002Findex-283eed3c1520dcc26e8d.js"],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-760f653e71e48010adf7.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-fd7c6a0057c26cb4d091.js"
],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-880757f1d73d6b241fc3.js"
Diff for _buildManifest.module.js
@@ -4,7 +4,7 @@ self.__BUILD_MANIFEST = {
"static\u002Fchunks\u002Fpages\u002Findex-dc79232991b9d18c3260.module.js"
],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-b59ce1d1aef722bdb502.module.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-8fcba411f7b9a67bc97f.module.js"
],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-56fa58a6f0993d7d36d7.module.js"
Diff for _error-760f6..48010adf7.js
@@ -535,8 +535,23 @@ Also adds support for deduplicated `key` properties
.map(function(c, i) {
var key = c.key || i;
- if (false) {
- var newProps;
+ if (true && !props.inAmpMode) {
+ if (
+ c.type === "link" &&
+ c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
+ ["https://fonts.googleapis.com/css"].some(function(url) {
+ return c.props["href"].startsWith(url);
+ })
+ ) {
+ var newProps = _objectSpread({}, c.props || {});
+
+ newProps["data-href"] = newProps["href"];
+ newProps["href"] = undefined;
+ return /*#__PURE__*/ _react["default"].cloneElement(
+ c,
+ newProps
+ );
+ }
}
return /*#__PURE__*/ _react["default"].cloneElement(c, {
Diff for _error-b59ce..02.module.js
@@ -446,8 +446,20 @@ Also adds support for deduplicated `key` properties
.map((c, i) => {
var key = c.key || i;
- if (false) {
- var newProps;
+ if (true && !props.inAmpMode) {
+ if (
+ c.type === "link" &&
+ c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
+ ["https://fonts.googleapis.com/css"].some(url =>
+ c.props["href"].startsWith(url)
+ )
+ ) {
+ var newProps = _objectSpread({}, c.props || {});
+
+ newProps["data-href"] = newProps["href"];
+ newProps["href"] = undefined;
+ return /*#__PURE__*/ _react.default.cloneElement(c, newProps);
+ }
}
return /*#__PURE__*/ _react.default.cloneElement(c, {
Serverless Mode (Increase detected ⚠️ )
General Overall decrease ✓
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 15.8s | 15.3s | -469ms |
nodeModulesSize | 85 MB | 85 MB | -99 B |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..776c.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-e3026b2..6d6d.js gzip | 6.53 kB | 6.53 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 58.9 kB | 58.9 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.26 kB | 8.26 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-1bf8747..dule.js gzip | 5.64 kB | 5.64 kB | ✓ |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
Overall change | 53.6 kB | 53.6 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | N/A | N/A |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
_error-1f53d..753f.js gzip | N/A | 3.69 kB | N/A |
Overall change | 8.01 kB | 8.27 kB |
Client Pages Modern Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | N/A | N/A |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-9741e7f..dule.js gzip | 1.55 kB | 1.55 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
_error-c65f4..dule.js gzip | N/A | 2.57 kB | N/A |
Overall change | 5.64 kB | 5.92 kB |
Client Build Manifests Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 329 B | 330 B | |
Overall change | 650 B | 651 B |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_error.js | 918 kB | 918 kB | |
404.html | 4.61 kB | 4.61 kB | ✓ |
hooks.html | 3.86 kB | 3.86 kB | ✓ |
index.js | 918 kB | 919 kB | |
link.js | 977 kB | 977 kB | |
routerDirect.js | 969 kB | 970 kB | |
withRouter.js | 969 kB | 970 kB | |
Overall change | 4.76 MB | 4.76 MB |
Failing test suitesCommit: 22df7a9 test/integration/build-output/test/index.test.js
Expand output● Build Output › Basic Application Output › should not deviate from snapshot
|
Failing test suitesCommit: 7ba923e test/integration/dist-dir/test/index.test.js
Expand output● distDir › With basic usage › should not build the app within the default
test/integration/build-output/test/index.test.js
Expand output● Build Output › Basic Application Output › should not deviate from snapshot
|
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 13.5s | 14.3s | |
nodeModulesSize | 85 MB | 85 MB | -99 B |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.441 | 2.748 | |
/ avg req/sec | 1024.26 | 909.64 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.364 | 1.38 | |
/error-in-render avg req/sec | 1832.25 | 1812.07 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..776c.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-e3026b2..6d6d.js gzip | 6.53 kB | 6.53 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 58.9 kB | 58.9 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.26 kB | 8.26 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-1bf8747..dule.js gzip | 5.64 kB | 5.64 kB | ✓ |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
Overall change | 53.6 kB | 53.6 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | 3.69 kB | |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 8.01 kB | 8.27 kB |
Client Pages Modern Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | 2.57 kB | |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-9741e7f..dule.js gzip | 1.55 kB | 1.55 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
Overall change | 5.64 kB | 5.92 kB |
Client Build Manifests Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 329 B | 330 B | |
Overall change | 650 B | 651 B |
Rendered Page Sizes
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
index.html gzip | 968 B | 968 B | ✓ |
link.html gzip | 976 B | 976 B | ✓ |
withRouter.html gzip | 961 B | 961 B | ✓ |
Overall change | 2.9 kB | 2.9 kB | ✓ |
Diffs
Diff for _buildManifest.js
@@ -2,7 +2,7 @@ self.__BUILD_MANIFEST = {
__rewrites: [],
"/": ["static\u002Fchunks\u002Fpages\u002Findex-283eed3c1520dcc26e8d.js"],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-760f653e71e48010adf7.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-fd7c6a0057c26cb4d091.js"
],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-880757f1d73d6b241fc3.js"
Diff for _buildManifest.module.js
@@ -4,7 +4,7 @@ self.__BUILD_MANIFEST = {
"static\u002Fchunks\u002Fpages\u002Findex-dc79232991b9d18c3260.module.js"
],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-b59ce1d1aef722bdb502.module.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-8fcba411f7b9a67bc97f.module.js"
],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-56fa58a6f0993d7d36d7.module.js"
Diff for _error-760f6..48010adf7.js
@@ -535,8 +535,23 @@ Also adds support for deduplicated `key` properties
.map(function(c, i) {
var key = c.key || i;
- if (false) {
- var newProps;
+ if (true && !props.inAmpMode) {
+ if (
+ c.type === "link" &&
+ c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
+ ["https://fonts.googleapis.com/css"].some(function(url) {
+ return c.props["href"].startsWith(url);
+ })
+ ) {
+ var newProps = _objectSpread({}, c.props || {});
+
+ newProps["data-href"] = newProps["href"];
+ newProps["href"] = undefined;
+ return /*#__PURE__*/ _react["default"].cloneElement(
+ c,
+ newProps
+ );
+ }
}
return /*#__PURE__*/ _react["default"].cloneElement(c, {
Diff for _error-b59ce..02.module.js
@@ -446,8 +446,20 @@ Also adds support for deduplicated `key` properties
.map((c, i) => {
var key = c.key || i;
- if (false) {
- var newProps;
+ if (true && !props.inAmpMode) {
+ if (
+ c.type === "link" &&
+ c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
+ ["https://fonts.googleapis.com/css"].some(url =>
+ c.props["href"].startsWith(url)
+ )
+ ) {
+ var newProps = _objectSpread({}, c.props || {});
+
+ newProps["data-href"] = newProps["href"];
+ newProps["href"] = undefined;
+ return /*#__PURE__*/ _react.default.cloneElement(c, newProps);
+ }
}
return /*#__PURE__*/ _react.default.cloneElement(c, {
Serverless Mode (Increase detected ⚠️ )
General Overall decrease ✓
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 15.7s | 15.7s | -1ms |
nodeModulesSize | 85 MB | 85 MB | -99 B |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..776c.js gzip | 12.7 kB | 12.7 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-e3026b2..6d6d.js gzip | 6.53 kB | 6.53 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 58.9 kB | 58.9 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..dule.js gzip | 8.26 kB | 8.26 kB | ✓ |
framework.HA..dule.js gzip | 39 kB | 39 kB | ✓ |
main-1bf8747..dule.js gzip | 5.64 kB | 5.64 kB | ✓ |
webpack-07c5..dule.js gzip | 751 B | 751 B | ✓ |
Overall change | 53.6 kB | 53.6 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | N/A | N/A |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
_error-1f53d..753f.js gzip | N/A | 3.69 kB | N/A |
Overall change | 8.01 kB | 8.27 kB |
Client Pages Modern Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-75d3a82..dule.js gzip | 625 B | 625 B | ✓ |
_error-f2fcc..dule.js gzip | 2.29 kB | N/A | N/A |
hooks-cbf13f..dule.js gzip | 387 B | 387 B | ✓ |
index-b9a643..dule.js gzip | 226 B | 226 B | ✓ |
link-9741e7f..dule.js gzip | 1.55 kB | 1.55 kB | ✓ |
routerDirect..dule.js gzip | 284 B | 284 B | ✓ |
withRouter-f..dule.js gzip | 282 B | 282 B | ✓ |
_error-c65f4..dule.js gzip | N/A | 2.57 kB | N/A |
Overall change | 5.64 kB | 5.92 kB |
Client Build Manifests Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
_buildManife..dule.js gzip | 329 B | 330 B | |
Overall change | 650 B | 651 B |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_error.js | 918 kB | 918 kB | |
404.html | 4.61 kB | 4.61 kB | ✓ |
hooks.html | 3.86 kB | 3.86 kB | ✓ |
index.js | 918 kB | 919 kB | |
link.js | 977 kB | 977 kB | |
routerDirect.js | 969 kB | 970 kB | |
withRouter.js | 969 kB | 970 kB | |
Overall change | 4.76 MB | 4.76 MB |
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 10.5s | 10.2s | -348ms |
nodeModulesSize | 84.9 MB | 84.9 MB | -2.62 kB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.347 | 2.523 | |
/ avg req/sec | 1065.19 | 990.8 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.573 | 1.525 | -0.05 |
/error-in-render avg req/sec | 1589.44 | 1639 | +49.56 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..8b81.js gzip | 12.8 kB | 12.8 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-fbd7082..8b7a.js gzip | 6.54 kB | 6.54 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 59 kB | 59 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | 3.69 kB | |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 8.01 kB | 8.27 kB |
Client Build Manifests
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
Overall change | 321 B | 321 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
index.html gzip | 614 B | 614 B | ✓ |
link.html gzip | 621 B | 621 B | ✓ |
withRouter.html gzip | 608 B | 608 B | ✓ |
Overall change | 1.84 kB | 1.84 kB | ✓ |
Diffs
Diff for _buildManifest.js
@@ -2,7 +2,7 @@ self.__BUILD_MANIFEST = {
__rewrites: [],
"/": ["static\u002Fchunks\u002Fpages\u002Findex-283eed3c1520dcc26e8d.js"],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-760f653e71e48010adf7.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-fd7c6a0057c26cb4d091.js"
],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-880757f1d73d6b241fc3.js"
Diff for _error-760f6..48010adf7.js
@@ -535,8 +535,23 @@ Also adds support for deduplicated `key` properties
.map(function(c, i) {
var key = c.key || i;
- if (false) {
- var newProps;
+ if (true && !props.inAmpMode) {
+ if (
+ c.type === "link" &&
+ c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
+ ["https://fonts.googleapis.com/css"].some(function(url) {
+ return c.props["href"].startsWith(url);
+ })
+ ) {
+ var newProps = _objectSpread({}, c.props || {});
+
+ newProps["data-href"] = newProps["href"];
+ newProps["href"] = undefined;
+ return /*#__PURE__*/ _react["default"].cloneElement(
+ c,
+ newProps
+ );
+ }
}
return /*#__PURE__*/ _react["default"].cloneElement(c, {
Serverless Mode (Increase detected ⚠️ )
General Overall decrease ✓
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 12.2s | 12.3s | |
nodeModulesSize | 84.9 MB | 84.9 MB | -2.62 kB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..8b81.js gzip | 12.8 kB | 12.8 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-fbd7082..8b7a.js gzip | 6.54 kB | 6.54 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 59 kB | 59 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | N/A | N/A |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
_error-1f53d..753f.js gzip | N/A | 3.69 kB | N/A |
Overall change | 8.01 kB | 8.27 kB |
Client Build Manifests
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
Overall change | 321 B | 321 B | ✓ |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_error.js | 915 kB | 916 kB | |
404.html | 2.67 kB | 2.67 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 915 kB | 916 kB | |
link.js | 973 kB | 975 kB | |
routerDirect.js | 966 kB | 967 kB | |
withRouter.js | 966 kB | 967 kB | |
Overall change | 4.74 MB | 4.74 MB |
Failing test suitesCommit: 67117f7 test/integration/prerender/test/index.test.js
Expand output● SSG Prerender › enumlated serverless mode › should reload page on failed data request, and retry
|
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 10.3s | 10.4s | |
nodeModulesSize | 84.9 MB | 84.9 MB | -2.62 kB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.255 | 2.501 | |
/ avg req/sec | 1108.85 | 999.59 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.359 | 1.339 | -0.02 |
/error-in-render avg req/sec | 1838.98 | 1867.67 | +28.69 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..8b81.js gzip | 12.8 kB | 12.8 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-fbd7082..8b7a.js gzip | 6.54 kB | 6.54 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 59 kB | 59 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | 3.69 kB | |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 8.01 kB | 8.27 kB |
Client Build Manifests
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
Overall change | 321 B | 321 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
index.html gzip | 614 B | 614 B | ✓ |
link.html gzip | 621 B | 621 B | ✓ |
withRouter.html gzip | 608 B | 608 B | ✓ |
Overall change | 1.84 kB | 1.84 kB | ✓ |
Diffs
Diff for _buildManifest.js
@@ -2,7 +2,7 @@ self.__BUILD_MANIFEST = {
__rewrites: [],
"/": ["static\u002Fchunks\u002Fpages\u002Findex-283eed3c1520dcc26e8d.js"],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-760f653e71e48010adf7.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-fd7c6a0057c26cb4d091.js"
],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-880757f1d73d6b241fc3.js"
Diff for _error-760f6..48010adf7.js
@@ -535,8 +535,23 @@ Also adds support for deduplicated `key` properties
.map(function(c, i) {
var key = c.key || i;
- if (false) {
- var newProps;
+ if (true && !props.inAmpMode) {
+ if (
+ c.type === "link" &&
+ c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
+ ["https://fonts.googleapis.com/css"].some(function(url) {
+ return c.props["href"].startsWith(url);
+ })
+ ) {
+ var newProps = _objectSpread({}, c.props || {});
+
+ newProps["data-href"] = newProps["href"];
+ newProps["href"] = undefined;
+ return /*#__PURE__*/ _react["default"].cloneElement(
+ c,
+ newProps
+ );
+ }
}
return /*#__PURE__*/ _react["default"].cloneElement(c, {
Serverless Mode (Increase detected ⚠️ )
General Overall decrease ✓
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 11.7s | 12.2s | |
nodeModulesSize | 84.9 MB | 84.9 MB | -2.62 kB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..8b81.js gzip | 12.8 kB | 12.8 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-fbd7082..8b7a.js gzip | 6.54 kB | 6.54 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 59 kB | 59 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-3b0cf13..85f8.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-6f635..c393.js gzip | 3.44 kB | N/A | N/A |
hooks-d4ffc3..9e0f.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-b618194..5477.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
_error-1f53d..753f.js gzip | N/A | 3.69 kB | N/A |
Overall change | 8.01 kB | 8.27 kB |
Client Build Manifests
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 321 B | ✓ |
Overall change | 321 B | 321 B | ✓ |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_error.js | 915 kB | 916 kB | |
404.html | 2.67 kB | 2.67 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 915 kB | 916 kB | |
link.js | 973 kB | 975 kB | |
routerDirect.js | 966 kB | 967 kB | |
withRouter.js | 966 kB | 967 kB | |
Overall change | 4.74 MB | 4.74 MB |
…defaults # Conflicts: # packages/next/build/webpack/loaders/next-serverless-loader.ts
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 9.1s | 8.9s | -163ms |
nodeModulesSize | 85 MB | 85 MB | -2.53 kB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.094 | 2.384 | |
/ avg req/sec | 1193.88 | 1048.47 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.356 | 1.376 | |
/error-in-render avg req/sec | 1843.68 | 1817.01 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..8b6e.js gzip | 12.8 kB | 12.8 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-90b3d5a..55ad.js gzip | 6.54 kB | 6.54 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 59 kB | 59 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-7231d4b..5856.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-fca3d..2eb1.js gzip | 3.44 kB | 3.69 kB | |
hooks-d4591d..e7c2.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-db223d9..dbd7.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 8.01 kB | 8.27 kB |
Client Build Manifests Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 322 B | |
Overall change | 321 B | 322 B |
Rendered Page Sizes
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
index.html gzip | 614 B | 614 B | ✓ |
link.html gzip | 621 B | 621 B | ✓ |
withRouter.html gzip | 608 B | 608 B | ✓ |
Overall change | 1.84 kB | 1.84 kB | ✓ |
Diffs
Diff for _buildManifest.js
@@ -2,7 +2,7 @@ self.__BUILD_MANIFEST = {
__rewrites: [],
"/": ["static\u002Fchunks\u002Fpages\u002Findex-283eed3c1520dcc26e8d.js"],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-9b57cae5694a39479222.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-fbaccf4d6b3c31a2915e.js"
],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-bdd2cad07648acf22380.js"
Diff for _error-9b57c..a39479222.js
@@ -535,8 +535,23 @@ Also adds support for deduplicated `key` properties
.map(function(c, i) {
var key = c.key || i;
- if (false) {
- var newProps;
+ if (true && !props.inAmpMode) {
+ if (
+ c.type === "link" &&
+ c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
+ ["https://fonts.googleapis.com/css"].some(function(url) {
+ return c.props["href"].startsWith(url);
+ })
+ ) {
+ var newProps = _objectSpread({}, c.props || {});
+
+ newProps["data-href"] = newProps["href"];
+ newProps["href"] = undefined;
+ return /*#__PURE__*/ _react["default"].cloneElement(
+ c,
+ newProps
+ );
+ }
}
return /*#__PURE__*/ _react["default"].cloneElement(c, {
Serverless Mode (Increase detected ⚠️ )
General Overall decrease ✓
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 10.7s | 10.8s | |
nodeModulesSize | 85 MB | 85 MB | -2.53 kB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..8b6e.js gzip | 12.8 kB | 12.8 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-90b3d5a..55ad.js gzip | 6.54 kB | 6.54 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 59 kB | 59 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-7231d4b..5856.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-fca3d..2eb1.js gzip | 3.44 kB | N/A | N/A |
hooks-d4591d..e7c2.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-db223d9..dbd7.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
_error-01375..90b6.js gzip | N/A | 3.69 kB | N/A |
Overall change | 8.01 kB | 8.27 kB |
Client Build Manifests Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 322 B | |
Overall change | 321 B | 322 B |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_error.js | 996 kB | 997 kB | |
404.html | 2.67 kB | 2.67 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 996 kB | 997 kB | |
link.js | 1.05 MB | 1.05 MB | |
routerDirect.js | 1.04 MB | 1.04 MB | |
withRouter.js | 1.04 MB | 1.04 MB | |
Overall change | 5.13 MB | 5.14 MB |
Failing test suitesCommit: 578f196 test/integration/font-optimization/test/index.test.js
Expand output● Font optimization for emulated serverless apps › should inline the google fonts for SSR pages
|
Failing test suitesCommit: a06a04f test/integration/css-client-nav/test/index.test.js
Expand output● CSS Module client-side navigation in Production › should be able to client-side navigate from blue to red
|
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 11.6s | 11.6s | -20ms |
nodeModulesSize | 82.3 MB | 82.3 MB | -2.85 kB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.258 | 2.786 | |
/ avg req/sec | 1107.17 | 897.19 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.551 | 1.663 | |
/error-in-render avg req/sec | 1612.17 | 1502.87 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..8b6e.js gzip | 12.8 kB | 12.8 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-3c9ff84..1d7c.js gzip | 6.56 kB | 6.56 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 59 kB | 59 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-7231d4b..5856.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-fca3d..2eb1.js gzip | 3.44 kB | 3.69 kB | |
hooks-d4591d..e7c2.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-db223d9..dbd7.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 8.01 kB | 8.27 kB |
Client Build Manifests Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 322 B | |
Overall change | 321 B | 322 B |
Rendered Page Sizes
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
index.html gzip | 614 B | 614 B | ✓ |
link.html gzip | 620 B | 620 B | ✓ |
withRouter.html gzip | 608 B | 608 B | ✓ |
Overall change | 1.84 kB | 1.84 kB | ✓ |
Diffs
Diff for _buildManifest.js
@@ -2,7 +2,7 @@ self.__BUILD_MANIFEST = {
__rewrites: [],
"/": ["static\u002Fchunks\u002Fpages\u002Findex-283eed3c1520dcc26e8d.js"],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-9b57cae5694a39479222.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-fbaccf4d6b3c31a2915e.js"
],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-bdd2cad07648acf22380.js"
Diff for _error-9b57c..a39479222.js
@@ -535,8 +535,23 @@ Also adds support for deduplicated `key` properties
.map(function(c, i) {
var key = c.key || i;
- if (false) {
- var newProps;
+ if (true && !props.inAmpMode) {
+ if (
+ c.type === "link" &&
+ c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
+ ["https://fonts.googleapis.com/css"].some(function(url) {
+ return c.props["href"].startsWith(url);
+ })
+ ) {
+ var newProps = _objectSpread({}, c.props || {});
+
+ newProps["data-href"] = newProps["href"];
+ newProps["href"] = undefined;
+ return /*#__PURE__*/ _react["default"].cloneElement(
+ c,
+ newProps
+ );
+ }
}
return /*#__PURE__*/ _react["default"].cloneElement(c, {
Serverless Mode (Increase detected ⚠️ )
General Overall decrease ✓
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 13.6s | 13.9s | |
nodeModulesSize | 82.3 MB | 82.3 MB | -2.85 kB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..8b6e.js gzip | 12.8 kB | 12.8 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-3c9ff84..1d7c.js gzip | 6.56 kB | 6.56 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 59 kB | 59 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-7231d4b..5856.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-fca3d..2eb1.js gzip | 3.44 kB | N/A | N/A |
hooks-d4591d..e7c2.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-db223d9..dbd7.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
_error-01375..90b6.js gzip | N/A | 3.69 kB | N/A |
Overall change | 8.01 kB | 8.27 kB |
Client Build Manifests Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 322 B | |
Overall change | 321 B | 322 B |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_error.js | 997 kB | 999 kB | |
404.html | 2.67 kB | 2.67 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 998 kB | 999 kB | |
link.js | 1.05 MB | 1.05 MB | |
routerDirect.js | 1.04 MB | 1.05 MB | |
withRouter.js | 1.04 MB | 1.05 MB | |
Overall change | 5.14 MB | 5.15 MB |
Failing test suitesCommit: a06a04f test/integration/css-modules/test/index.test.js
Expand output● Basic CSS Module Support › should've injected the CSS on server render
● 3rd Party CSS Module Support › should've injected the CSS on server render
|
Failing test suitesCommit: a06a04f test/integration/production/test/index.test.js
Expand output● Production Usage › Dynamic import › default behavior › should render one dynamically imported component and load its css files
● Production Usage › Dynamic import › default behavior › should render three dynamically imported components and load their css files
● Production Usage › Dynamic import › default behavior › should bundle two css modules for one dynamically imported component into one css file
● Production Usage › Dynamic import › default behavior › should bundle two css modules for nested components into one css file
● Production Usage › Dynamic import › default behavior › should output two css files even in case of three css module files while one is shared across files
|
Failing test suitesCommit: a06a04f test/integration/scss-modules/test/index.test.js
Expand output● Basic SCSS Module Support › should've injected the CSS on server render
● 3rd Party CSS Module Support › should've injected the CSS on server render
|
Failing test suitesCommit: a06a04f test/integration/css/test/index.test.js
Expand output● CSS Support › Has CSS in computed styles in Production › should've preloaded the CSS file and injected it in
|
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 8.2s | 8.1s | -146ms |
nodeModulesSize | 82.3 MB | 82.3 MB | -2.85 kB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.68 | 2.034 | |
/ avg req/sec | 1487.94 | 1228.93 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.038 | 1.081 | |
/error-in-render avg req/sec | 2409.1 | 2312.46 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..8b6e.js gzip | 12.8 kB | 12.8 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-3c9ff84..1d7c.js gzip | 6.56 kB | 6.56 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 59 kB | 59 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-7231d4b..5856.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-fca3d..2eb1.js gzip | 3.44 kB | 3.69 kB | |
hooks-d4591d..e7c2.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-db223d9..dbd7.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
Overall change | 8.01 kB | 8.27 kB |
Client Build Manifests Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 322 B | |
Overall change | 321 B | 322 B |
Rendered Page Sizes
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
index.html gzip | 614 B | 614 B | ✓ |
link.html gzip | 620 B | 620 B | ✓ |
withRouter.html gzip | 608 B | 608 B | ✓ |
Overall change | 1.84 kB | 1.84 kB | ✓ |
Diffs
Diff for _buildManifest.js
@@ -2,7 +2,7 @@ self.__BUILD_MANIFEST = {
__rewrites: [],
"/": ["static\u002Fchunks\u002Fpages\u002Findex-283eed3c1520dcc26e8d.js"],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-9b57cae5694a39479222.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-fbaccf4d6b3c31a2915e.js"
],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-bdd2cad07648acf22380.js"
Diff for _error-9b57c..a39479222.js
@@ -535,8 +535,23 @@ Also adds support for deduplicated `key` properties
.map(function(c, i) {
var key = c.key || i;
- if (false) {
- var newProps;
+ if (true && !props.inAmpMode) {
+ if (
+ c.type === "link" &&
+ c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
+ ["https://fonts.googleapis.com/css"].some(function(url) {
+ return c.props["href"].startsWith(url);
+ })
+ ) {
+ var newProps = _objectSpread({}, c.props || {});
+
+ newProps["data-href"] = newProps["href"];
+ newProps["href"] = undefined;
+ return /*#__PURE__*/ _react["default"].cloneElement(
+ c,
+ newProps
+ );
+ }
}
return /*#__PURE__*/ _react["default"].cloneElement(c, {
Serverless Mode (Increase detected ⚠️ )
General Overall decrease ✓
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
buildDuration | 9.8s | 10s | |
nodeModulesSize | 82.3 MB | 82.3 MB | -2.85 kB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
677f882d2ed8..8b6e.js gzip | 12.8 kB | 12.8 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-3c9ff84..1d7c.js gzip | 6.56 kB | 6.56 kB | ✓ |
webpack-e067..f178.js gzip | 751 B | 751 B | ✓ |
Overall change | 59 kB | 59 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
polyfills-4b..e242.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_app-7231d4b..5856.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-fca3d..2eb1.js gzip | 3.44 kB | N/A | N/A |
hooks-d4591d..e7c2.js gzip | 887 B | 887 B | ✓ |
index-17468f..5d83.js gzip | 227 B | 227 B | ✓ |
link-db223d9..dbd7.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..924c.js gzip | 284 B | 284 B | ✓ |
withRouter-7..c13d.js gzip | 284 B | 284 B | ✓ |
_error-01375..90b6.js gzip | N/A | 3.69 kB | N/A |
Overall change | 8.01 kB | 8.27 kB |
Client Build Manifests Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_buildManifest.js gzip | 321 B | 322 B | |
Overall change | 321 B | 322 B |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | azukaru/next.js font-defaults | Change | |
---|---|---|---|
_error.js | 997 kB | 999 kB | |
404.html | 2.67 kB | 2.67 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 998 kB | 999 kB | |
link.js | 1.05 MB | 1.05 MB | |
routerDirect.js | 1.04 MB | 1.05 MB | |
withRouter.js | 1.04 MB | 1.05 MB | |
Overall change | 5.14 MB | 5.15 MB |
Failing test suitesCommit: a1799f6 test/integration/css-client-nav/test/index.test.js
Expand output● CSS Module client-side navigation in Production › should be able to client-side navigate from blue to red
|
Failing test suitesCommit: a1799f6 test/integration/production/test/index.test.js
Expand output● Production Usage › Dynamic import › default behavior › should render one dynamically imported component and load its css files
● Production Usage › Dynamic import › default behavior › should render three dynamically imported components and load their css files
● Production Usage › Dynamic import › default behavior › should bundle two css modules for one dynamically imported component into one css file
● Production Usage › Dynamic import › default behavior › should bundle two css modules for nested components into one css file
● Production Usage › Dynamic import › default behavior › should output two css files even in case of three css module files while one is shared across files
|
Failing test suitesCommit: a1799f6 test/integration/scss-modules/test/index.test.js
Expand output● Basic SCSS Module Support › should've injected the CSS on server render
● 3rd Party CSS Module Support › should've injected the CSS on server render
|
opened #19758 |