-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
Temporarily remove the automatic opt-in for webpack5 #23497
Merged
timneutkens
merged 3 commits into
vercel:canary
from
timneutkens:add/disable-automatic-webpack5-temporarily
Mar 29, 2021
Merged
Temporarily remove the automatic opt-in for webpack5 #23497
timneutkens
merged 3 commits into
vercel:canary
from
timneutkens:add/disable-automatic-webpack5-temporarily
Mar 29, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This can be brought back on canary once a new stable version is out.
timneutkens
requested review from
divmain,
ijjk,
lfades and
shuding
as code owners
March 29, 2021 08:46
shuding
previously approved these changes
Mar 29, 2021
Failing test suitesCommit: d15b030 test/integration/build-output/test/index.test.js
Expand output● Build Output › Basic Application Output › should not deviate from snapshot
|
Failing test suitesCommit: 99bdf9d 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 | timneutkens/next.js add/disable-automatic-webpack5-temporarily | Change | |
---|---|---|---|
buildDuration | 15.1s | 12.4s | -2.8s |
nodeModulesSize | 61.8 MB | 61.7 MB | -88.9 kB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | timneutkens/next.js add/disable-automatic-webpack5-temporarily | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.053 | 1.986 | -0.07 |
/ avg req/sec | 1217.62 | 1258.92 | +41.3 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.2 | 1.264 | |
/error-in-render avg req/sec | 2083.82 | 1977.72 |
Client Bundles (main, webpack, commons) Overall decrease ✓
vercel/next.js canary | timneutkens/next.js add/disable-automatic-webpack5-temporarily | Change | |
---|---|---|---|
597-e27c5352..db8c.js gzip | 13.3 kB | 13.4 kB | |
778-0cefc755..20c3.js gzip | 7.05 kB | N/A | N/A |
framework.HASH.js gzip | 39.3 kB | 39 kB | -301 B |
main-HASH.js gzip | 151 B | 7.12 kB | |
webpack-HASH.js gzip | 993 B | 751 B | -242 B |
Overall change | 60.8 kB | 60.2 kB | -554 B |
Legacy Client Bundles (polyfills) Overall increase ⚠️
vercel/next.js canary | timneutkens/next.js add/disable-automatic-webpack5-temporarily | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31.1 kB | 31.3 kB | |
Overall change | 31.1 kB | 31.3 kB |
Client Pages Overall decrease ✓
vercel/next.js canary | timneutkens/next.js add/disable-automatic-webpack5-temporarily | Change | |
---|---|---|---|
_app-5cc66b2..6f03.js gzip | 1.3 kB | 1.28 kB | -15 B |
_error-b58c1..9b8e.js gzip | 3.4 kB | 3.46 kB | |
amp-89a5460c..567f.js gzip | 558 B | N/A | N/A |
hooks-8c2e74..be37.js gzip | 924 B | 888 B | -36 B |
index-fec729..83b2.js gzip | 243 B | N/A | N/A |
link-dd34d9b..0ade.js gzip | 1.66 kB | 1.64 kB | -17 B |
routerDirect..5759.js gzip | 336 B | N/A | N/A |
withRouter-1..98bf.js gzip | 334 B | N/A | N/A |
amp-9716187d..0aa8.js gzip | N/A | 536 B | N/A |
index-ac435c..ecf2.js gzip | N/A | 227 B | N/A |
routerDirect..dc9d.js gzip | N/A | 303 B | N/A |
withRouter-6..0e02.js gzip | N/A | 302 B | N/A |
Overall change | 8.76 kB | 8.64 kB | -121 B |
Client Build Manifests Overall increase ⚠️
vercel/next.js canary | timneutkens/next.js add/disable-automatic-webpack5-temporarily | Change | |
---|---|---|---|
_buildManifest.js gzip | 349 B | 370 B | |
Overall change | 349 B | 370 B |
Rendered Page Sizes Overall increase ⚠️
vercel/next.js canary | timneutkens/next.js add/disable-automatic-webpack5-temporarily | Change | |
---|---|---|---|
index.html gzip | 609 B | 612 B | |
link.html gzip | 615 B | 620 B | |
withRouter.html gzip | 603 B | 606 B | |
Overall change | 1.83 kB | 1.84 kB |
Serverless Mode (Increase detected ⚠️ )
General Overall decrease ✓
vercel/next.js canary | timneutkens/next.js add/disable-automatic-webpack5-temporarily | Change | |
---|---|---|---|
buildDuration | 18.9s | 14.8s | -4.1s |
nodeModulesSize | 61.8 MB | 61.7 MB | -88.9 kB |
Client Bundles (main, webpack, commons) Overall decrease ✓
vercel/next.js canary | timneutkens/next.js add/disable-automatic-webpack5-temporarily | Change | |
---|---|---|---|
597-e27c5352..db8c.js gzip | 13.3 kB | N/A | N/A |
778-0cefc755..20c3.js gzip | 7.05 kB | N/A | N/A |
framework.HASH.js gzip | 39.3 kB | 39 kB | -301 B |
main-HASH.js gzip | 151 B | 7.12 kB | |
webpack-HASH.js gzip | 993 B | 751 B | -242 B |
677f882d2ed8..7edd.js gzip | N/A | 13.4 kB | N/A |
Overall change | 60.8 kB | 60.2 kB | -554 B |
Legacy Client Bundles (polyfills) Overall increase ⚠️
vercel/next.js canary | timneutkens/next.js add/disable-automatic-webpack5-temporarily | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31.1 kB | 31.3 kB | |
Overall change | 31.1 kB | 31.3 kB |
Client Pages Overall decrease ✓
vercel/next.js canary | timneutkens/next.js add/disable-automatic-webpack5-temporarily | Change | |
---|---|---|---|
_app-5cc66b2..6f03.js gzip | 1.3 kB | N/A | N/A |
_error-b58c1..9b8e.js gzip | 3.4 kB | N/A | N/A |
amp-89a5460c..567f.js gzip | 558 B | N/A | N/A |
hooks-8c2e74..be37.js gzip | 924 B | N/A | N/A |
index-fec729..83b2.js gzip | 243 B | N/A | N/A |
link-dd34d9b..0ade.js gzip | 1.66 kB | N/A | N/A |
routerDirect..5759.js gzip | 336 B | N/A | N/A |
withRouter-1..98bf.js gzip | 334 B | N/A | N/A |
_app-8fbabfc..6440.js gzip | N/A | 1.28 kB | N/A |
_error-af59f..582f.js gzip | N/A | 3.46 kB | N/A |
amp-9716187d..0aa8.js gzip | N/A | 536 B | N/A |
hooks-107e90..74c7.js gzip | N/A | 888 B | N/A |
index-ac435c..ecf2.js gzip | N/A | 227 B | N/A |
link-c31053f..c329.js gzip | N/A | 1.64 kB | N/A |
routerDirect..dc9d.js gzip | N/A | 303 B | N/A |
withRouter-6..0e02.js gzip | N/A | 302 B | N/A |
Overall change | 8.76 kB | 8.64 kB | -121 B |
Client Build Manifests Overall increase ⚠️
vercel/next.js canary | timneutkens/next.js add/disable-automatic-webpack5-temporarily | Change | |
---|---|---|---|
_buildManifest.js gzip | 349 B | 370 B | |
Overall change | 349 B | 370 B |
Serverless bundles Overall increase ⚠️
vercel/next.js canary | timneutkens/next.js add/disable-automatic-webpack5-temporarily | Change | |
---|---|---|---|
_error.js | 1.34 MB | 1.36 MB | |
404.html | 2.76 kB | 2.67 kB | -96 B |
500.html | 2.75 kB | 2.65 kB | -96 B |
amp.amp.html | 10.6 kB | 10.6 kB | ✓ |
amp.html | 1.96 kB | 1.86 kB | -96 B |
hooks.html | 2.01 kB | 1.92 kB | -96 B |
index.js | 1.34 MB | 1.36 MB | |
link.js | 1.4 MB | 1.42 MB | |
routerDirect.js | 1.39 MB | 1.41 MB | |
withRouter.js | 1.39 MB | 1.41 MB | |
Overall change | 6.9 MB | 6.99 MB |
Webpack 5 Mode (Decrease detected ✓)
General Overall decrease ✓
vercel/next.js canary | timneutkens/next.js add/disable-automatic-webpack5-temporarily | Change | |
---|---|---|---|
buildDuration | 15s | 15.1s | |
nodeModulesSize | 61.8 MB | 61.7 MB | -88.9 kB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | timneutkens/next.js add/disable-automatic-webpack5-temporarily | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.001 | 2.061 | |
/ avg req/sec | 1249.62 | 1213.15 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.211 | 1.298 | |
/error-in-render avg req/sec | 2065.14 | 1926.69 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | timneutkens/next.js add/disable-automatic-webpack5-temporarily | Change | |
---|---|---|---|
597-e27c5352..db8c.js gzip | 13.3 kB | 13.3 kB | ✓ |
778-0cefc755..20c3.js gzip | 7.05 kB | 7.05 kB | ✓ |
framework.HASH.js gzip | 39.3 kB | 39.3 kB | ✓ |
main-HASH.js gzip | 151 B | 151 B | ✓ |
webpack-HASH.js gzip | 993 B | 993 B | ✓ |
Overall change | 60.8 kB | 60.8 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | timneutkens/next.js add/disable-automatic-webpack5-temporarily | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31.1 kB | 31.1 kB | ✓ |
Overall change | 31.1 kB | 31.1 kB | ✓ |
Client Pages
vercel/next.js canary | timneutkens/next.js add/disable-automatic-webpack5-temporarily | Change | |
---|---|---|---|
_app-5cc66b2..6f03.js gzip | 1.3 kB | 1.3 kB | ✓ |
_error-b58c1..9b8e.js gzip | 3.4 kB | 3.4 kB | ✓ |
amp-89a5460c..567f.js gzip | 558 B | 558 B | ✓ |
hooks-8c2e74..be37.js gzip | 924 B | 924 B | ✓ |
index-fec729..83b2.js gzip | 243 B | 243 B | ✓ |
link-dd34d9b..0ade.js gzip | 1.66 kB | 1.66 kB | ✓ |
routerDirect..5759.js gzip | 336 B | 336 B | ✓ |
withRouter-1..98bf.js gzip | 334 B | 334 B | ✓ |
Overall change | 8.76 kB | 8.76 kB | ✓ |
Client Build Manifests
vercel/next.js canary | timneutkens/next.js add/disable-automatic-webpack5-temporarily | Change | |
---|---|---|---|
_buildManifest.js gzip | 349 B | 349 B | ✓ |
Overall change | 349 B | 349 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | timneutkens/next.js add/disable-automatic-webpack5-temporarily | Change | |
---|---|---|---|
index.html gzip | 609 B | 609 B | ✓ |
link.html gzip | 615 B | 615 B | ✓ |
withRouter.html gzip | 603 B | 603 B | ✓ |
Overall change | 1.83 kB | 1.83 kB | ✓ |
Diffs
Diff for _buildManifest.js
@@ -1,21 +1,29 @@
-(self.__BUILD_MANIFEST = {
+self.__BUILD_MANIFEST = {
__rewrites: { beforeFiles: [], afterFiles: [], fallback: [] },
- "/": ["static/chunks/pages/index-fec729acd14e4a5583b2.js"],
- "/_error": ["static/chunks/pages/_error-b58c108825251cad9b8e.js"],
- "/amp": ["static/chunks/pages/amp-89a5460cada4d99b567f.js"],
- "/hooks": ["static/chunks/pages/hooks-8c2e74bb2b6bffaebe37.js"],
- "/link": ["static/chunks/pages/link-dd34d9b14dfb3c040ade.js"],
- "/routerDirect": ["static/chunks/pages/routerDirect-86b413d0659e50665759.js"],
- "/withRouter": ["static/chunks/pages/withRouter-186b16dd09ed427898bf.js"],
+ "/": ["static\u002Fchunks\u002Fpages\u002Findex-ac435c89e537f4e6ecf2.js"],
+ "/_error": [
+ "static\u002Fchunks\u002Fpages\u002F_error-af59f52346097a29582f.js"
+ ],
+ "/amp": ["static\u002Fchunks\u002Fpages\u002Famp-9716187d43cb5ac80aa8.js"],
+ "/hooks": [
+ "static\u002Fchunks\u002Fpages\u002Fhooks-107e903cc2136d5974c7.js"
+ ],
+ "/link": ["static\u002Fchunks\u002Fpages\u002Flink-c31053f6d096d7dcc329.js"],
+ "/routerDirect": [
+ "static\u002Fchunks\u002Fpages\u002FrouterDirect-68414267e80493f2dc9d.js"
+ ],
+ "/withRouter": [
+ "static\u002Fchunks\u002Fpages\u002FwithRouter-6e72b47076be15290e02.js"
+ ],
sortedPages: [
- "/",
- "/_app",
- "/_error",
- "/amp",
- "/hooks",
- "/link",
- "/routerDirect",
- "/withRouter"
+ "\u002F",
+ "\u002F_app",
+ "\u002F_error",
+ "\u002Famp",
+ "\u002Fhooks",
+ "\u002Flink",
+ "\u002FrouterDirect",
+ "\u002FwithRouter"
]
-}),
- self.__BUILD_MANIFEST_CB && self.__BUILD_MANIFEST_CB();
+};
+self.__BUILD_MANIFEST_CB && self.__BUILD_MANIFEST_CB();
Diff for _app-5cc66b2..5f30f6f03.js
@@ -1,30 +1,11 @@
-(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
- [888, 179],
+_N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
+ [4],
{
- 1506: function(t) {
- t.exports = function(t) {
- if (void 0 === t)
- throw new ReferenceError(
- "this hasn't been initialised - super() hasn't been called"
- );
- return t;
- };
- },
- 9754: function(t) {
- function e(n) {
- return (
- (t.exports = e = Object.setPrototypeOf
- ? Object.getPrototypeOf
- : function(t) {
- return t.__proto__ || Object.getPrototypeOf(t);
- }),
- e(n)
- );
- }
- t.exports = e;
+ 0: function(t, e, n) {
+ n("e9+W"), (t.exports = n("nOHt"));
},
- 2205: function(t, e, n) {
- var r = n(9489);
+ "7W2i": function(t, e, n) {
+ var r = n("SksO");
t.exports = function(t, e) {
if ("function" !== typeof e && null !== e)
throw new TypeError(
@@ -36,23 +17,16 @@
e && r(t, e);
};
},
- 8585: function(t, e, n) {
- var r = n(8),
- o = n(1506);
- t.exports = function(t, e) {
- return !e || ("object" !== r(e) && "function" !== typeof e) ? o(t) : e;
- };
- },
- 6381: function(t, e, n) {
+ B5Ud: function(t, e, n) {
"use strict";
- var r = n(7757),
- o = n(4575),
- u = n(3913),
- c = n(2205),
- i = n(8585),
- a = n(9754),
- p = n(8926);
- function f(t) {
+ var r = n("o0o1"),
+ o = n("lwsE"),
+ u = n("W8MJ"),
+ i = n("7W2i"),
+ c = n("a1gu"),
+ a = n("Nsbk"),
+ p = n("yXPU");
+ function s(t) {
var e = (function() {
if ("undefined" === typeof Reflect || !Reflect.construct) return !1;
if (Reflect.construct.sham) return !1;
@@ -75,24 +49,24 @@
var o = a(this).constructor;
n = Reflect.construct(r, arguments, o);
} else n = r.apply(this, arguments);
- return i(this, n);
+ return c(this, n);
};
}
- var s = n(5318);
+ var f = n("TqRt");
(e.__esModule = !0),
(e.Container = function(t) {
0;
return t.children;
}),
- (e.createUrl = b),
+ (e.createUrl = v),
(e.default = void 0);
- var l = s(n(7294)),
- h = n(3937);
+ var l = f(n("q1tI")),
+ h = n("g/15");
function _(t) {
- return v.apply(this, arguments);
+ return d.apply(this, arguments);
}
- function v() {
- return (v = p(
+ function d() {
+ return (d = p(
r.mark(function t(e) {
var n, o, u;
return r.wrap(function(t) {
@@ -118,8 +92,8 @@
(e.AppInitialProps = h.AppInitialProps),
(e.NextWebVitalsMetric = h.NextWebVitalsMetric);
var y = (function(t) {
- c(n, t);
- var e = f(n);
+ i(n, t);
+ var e = s(n);
function n() {
return o(this, n), e.apply(this, arguments);
}
@@ -142,7 +116,7 @@
u = t.__N_SSP;
return l.default.createElement(
n,
- Object.assign({}, r, o || u ? {} : { url: b(e) })
+ Object.assign({}, r, o || u ? {} : { url: v(e) })
);
}
}
@@ -150,7 +124,7 @@
n
);
})(l.default.Component);
- function b(t) {
+ function v(t) {
var e = t.pathname,
n = t.asPath,
r = t.query;
@@ -187,24 +161,43 @@
}
(e.default = y), (y.origGetInitialProps = _), (y.getInitialProps = _);
},
- 915: function(t, e, n) {
+ Nsbk: function(t, e) {
+ function n(e) {
+ return (
+ (t.exports = n = Object.setPrototypeOf
+ ? Object.getPrototypeOf
+ : function(t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ }),
+ n(e)
+ );
+ }
+ t.exports = n;
+ },
+ PJYZ: function(t, e) {
+ t.exports = function(t) {
+ if (void 0 === t)
+ throw new ReferenceError(
+ "this hasn't been initialised - super() hasn't been called"
+ );
+ return t;
+ };
+ },
+ a1gu: function(t, e, n) {
+ var r = n("cDf5"),
+ o = n("PJYZ");
+ t.exports = function(t, e) {
+ return !e || ("object" !== r(e) && "function" !== typeof e) ? o(t) : e;
+ };
+ },
+ "e9+W": function(t, e, n) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/_app",
function() {
- return n(6381);
+ return n("B5Ud");
}
]);
- },
- 4453: function() {}
+ }
},
- function(t) {
- var e = function(e) {
- return t((t.s = e));
- };
- t.O(0, [774, 597], function() {
- return e(915), e(2441);
- });
- var n = t.O();
- _N_E = n;
- }
+ [[0, 0, 1, 2]]
]);
Diff for _error-b58c1..51cad9b8e.js
@@ -1,78 +1,177 @@
-(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
- [820],
+_N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
+ [5],
{
- 7228: function(e) {
- e.exports = function(e, t) {
- (null == t || t > e.length) && (t = e.length);
- for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
- return r;
- };
- },
- 3646: function(e, t, n) {
- var r = n(7228);
- e.exports = function(e) {
- if (Array.isArray(e)) return r(e);
- };
- },
- 1506: function(e) {
- e.exports = function(e) {
- if (void 0 === e)
- throw new ReferenceError(
- "this hasn't been initialised - super() hasn't been called"
- );
- return e;
- };
- },
- 4575: function(e) {
- e.exports = function(e, t) {
- if (!(e instanceof t))
- throw new TypeError("Cannot call a class as a function");
- };
- },
- 3913: function(e) {
- function t(e, t) {
- for (var n = 0; n < t.length; n++) {
- var r = t[n];
- (r.enumerable = r.enumerable || !1),
- (r.configurable = !0),
- "value" in r && (r.writable = !0),
- Object.defineProperty(e, r.key, r);
- }
+ "/0+H": function(e, t, n) {
+ "use strict";
+ (t.__esModule = !0),
+ (t.isInAmpMode = i),
+ (t.useAmp = function() {
+ return i(o.default.useContext(a.AmpStateContext));
+ });
+ var r,
+ o = (r = n("q1tI")) && r.__esModule ? r : { default: r },
+ a = n("lwAK");
+ function i() {
+ var e =
+ arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
+ t = e.ampFirst,
+ n = void 0 !== t && t,
+ r = e.hybrid,
+ o = void 0 !== r && r,
+ a = e.hasQuery,
+ i = void 0 !== a && a;
+ return n || (o && i);
}
- e.exports = function(e, n, r) {
- return n && t(e.prototype, n), r && t(e, r), e;
- };
},
- 9713: function(e) {
- e.exports = function(e, t, n) {
+ "/a9y": function(e, t, n) {
+ "use strict";
+ var r = n("lwsE"),
+ o = n("W8MJ"),
+ a = n("7W2i"),
+ i = n("a1gu"),
+ u = n("Nsbk");
+ function c(e) {
+ var t = (function() {
+ if ("undefined" === typeof Reflect || !Reflect.construct) return !1;
+ if (Reflect.construct.sham) return !1;
+ if ("function" === typeof Proxy) return !0;
+ try {
+ return (
+ Date.prototype.toString.call(
+ Reflect.construct(Date, [], function() {})
+ ),
+ !0
+ );
+ } catch (e) {
+ return !1;
+ }
+ })();
+ return function() {
+ var n,
+ r = u(e);
+ if (t) {
+ var o = u(this).constructor;
+ n = Reflect.construct(r, arguments, o);
+ } else n = r.apply(this, arguments);
+ return i(this, n);
+ };
+ }
+ var s = n("TqRt");
+ (t.__esModule = !0), (t.default = void 0);
+ var f = s(n("q1tI")),
+ l = s(n("8Kt/")),
+ p = {
+ 400: "Bad Request",
+ 404: "This page could not be found",
+ 405: "Method Not Allowed",
+ 500: "Internal Server Error"
+ };
+ function d(e) {
+ var t = e.res,
+ n = e.err;
+ return {
+ statusCode: t && t.statusCode ? t.statusCode : n ? n.statusCode : 404
+ };
+ }
+ var y = (function(e) {
+ a(n, e);
+ var t = c(n);
+ function n() {
+ return r(this, n), t.apply(this, arguments);
+ }
return (
- t in e
- ? Object.defineProperty(e, t, {
- value: n,
- enumerable: !0,
- configurable: !0,
- writable: !0
- })
- : (e[t] = n),
- e
+ o(n, [
+ {
+ key: "render",
+ value: function() {
+ var e = this.props.statusCode,
+ t =
+ this.props.title ||
+ p[e] ||
+ "An unexpected error has occurred";
+ return f.default.createElement(
+ "div",
+ { style: h.error },
+ f.default.createElement(
+ l.default,
+ null,
+ f.default.createElement("title", null, e, ": ", t)
+ ),
+ f.default.createElement(
+ "div",
+ null,
+ f.default.createElement("style", {
+ dangerouslySetInnerHTML: { __html: "body { margin: 0 }" }
+ }),
+ e
+ ? f.default.createElement("h1", { style: h.h1 }, e)
+ : null,
+ f.default.createElement(
+ "div",
+ { style: h.desc },
+ f.default.createElement("h2", { style: h.h2 }, t, ".")
+ )
+ )
+ );
+ }
+ }
+ ]),
+ n
);
+ })(f.default.Component);
+ (t.default = y),
+ (y.displayName = "ErrorPage"),
+ (y.getInitialProps = d),
+ (y.origGetInitialProps = d);
+ var h = {
+ error: {
+ color: "#000",
+ background: "#fff",
+ fontFamily:
+ '-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',
+ height: "100vh",
+ textAlign: "center",
+ display: "flex",
+ flexDirection: "column",
+ alignItems: "center",
+ justifyContent: "center"
+ },
+ desc: {
+ display: "inline-block",
+ textAlign: "left",
+ lineHeight: "49px",
+ height: "49px",
+ verticalAlign: "middle"
+ },
+ h1: {
+ display: "inline-block",
+ borderRight: "1px solid rgba(0, 0, 0,.3)",
+ margin: 0,
+ marginRight: "20px",
+ padding: "10px 23px 10px 0",
+ fontSize: "24px",
+ fontWeight: 500,
+ verticalAlign: "top"
+ },
+ h2: {
+ fontSize: "14px",
+ fontWeight: "normal",
+ lineHeight: "inherit",
+ margin: 0,
+ padding: 0
+ }
};
},
- 9754: function(e) {
- function t(n) {
- return (
- (e.exports = t = Object.setPrototypeOf
- ? Object.getPrototypeOf
- : function(e) {
- return e.__proto__ || Object.getPrototypeOf(e);
- }),
- t(n)
- );
- }
- e.exports = t;
+ "04ac": function(e, t, n) {
+ (window.__NEXT_P = window.__NEXT_P || []).push([
+ "/_error",
+ function() {
+ return n("/a9y");
+ }
+ ]);
},
- 2205: function(e, t, n) {
- var r = n(9489);
+ "7W2i": function(e, t, n) {
+ var r = n("SksO");
e.exports = function(e, t) {
if ("function" !== typeof t && null !== t)
throw new TypeError(
@@ -84,148 +183,16 @@
t && r(e, t);
};
},
- 5318: function(e) {
- e.exports = function(e) {
- return e && e.__esModule ? e : { default: e };
- };
- },
- 6860: function(e) {
- e.exports = function(e) {
- if ("undefined" !== typeof Symbol && Symbol.iterator in Object(e))
- return Array.from(e);
- };
- },
- 8206: function(e) {
- e.exports = function() {
- throw new TypeError(
- "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
- );
- };
- },
- 8585: function(e, t, n) {
- var r = n(8),
- o = n(1506);
- e.exports = function(e, t) {
- return !t || ("object" !== r(t) && "function" !== typeof t) ? o(e) : t;
- };
- },
- 9489: function(e) {
- function t(n, r) {
- return (
- (e.exports = t =
- Object.setPrototypeOf ||
- function(e, t) {
- return (e.__proto__ = t), e;
- }),
- t(n, r)
- );
- }
- e.exports = t;
- },
- 319: function(e, t, n) {
- var r = n(3646),
- o = n(6860),
- a = n(379),
- u = n(8206);
- e.exports = function(e) {
- return r(e) || o(e) || a(e) || u();
- };
- },
- 8: function(e) {
- function t(n) {
- return (
- "function" === typeof Symbol && "symbol" === typeof Symbol.iterator
- ? (e.exports = t = function(e) {
- return typeof e;
- })
- : (e.exports = t = function(e) {
- return e &&
- "function" === typeof Symbol &&
- e.constructor === Symbol &&
- e !== Symbol.prototype
- ? "symbol"
- : typeof e;
- }),
- t(n)
- );
- }
- e.exports = t;
- },
- 379: function(e, t, n) {
- var r = n(7228);
- e.exports = function(e, t) {
- if (e) {
- if ("string" === typeof e) return r(e, t);
- var n = Object.prototype.toString.call(e).slice(8, -1);
- return (
- "Object" === n && e.constructor && (n = e.constructor.name),
- "Map" === n || "Set" === n
- ? Array.from(e)
- : "Arguments" === n ||
- /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
- ? r(e, t)
- : void 0
- );
- }
- };
- },
- 6086: function(e) {
- "use strict";
- var t = Object.assign.bind(Object);
- (e.exports = t), (e.exports.default = e.exports);
- },
- 3367: function(e, t, n) {
- "use strict";
- var r;
- (t.__esModule = !0), (t.AmpStateContext = void 0);
- var o = ((r = n(7294)) && r.__esModule
- ? r
- : { default: r }
- ).default.createContext({});
- t.AmpStateContext = o;
- },
- 7845: function(e, t, n) {
- "use strict";
- (t.__esModule = !0),
- (t.isInAmpMode = u),
- (t.useAmp = function() {
- return u(o.default.useContext(a.AmpStateContext));
- });
- var r,
- o = (r = n(7294)) && r.__esModule ? r : { default: r },
- a = n(3367);
- function u() {
- var e =
- arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
- t = e.ampFirst,
- n = void 0 !== t && t,
- r = e.hybrid,
- o = void 0 !== r && r,
- a = e.hasQuery,
- u = void 0 !== a && a;
- return n || (o && u);
- }
- },
- 4287: function(e, t, n) {
- "use strict";
- var r;
- (t.__esModule = !0), (t.HeadManagerContext = void 0);
- var o = ((r = n(7294)) && r.__esModule
- ? r
- : { default: r }
- ).default.createContext({});
- t.HeadManagerContext = o;
- },
- 7947: function(e, t, n) {
+ "8Kt/": function(e, t, n) {
"use strict";
- n(9713);
- (t.__esModule = !0), (t.defaultHead = s), (t.default = void 0);
+ n("lSNA");
+ (t.__esModule = !0), (t.defaultHead = f), (t.default = void 0);
var r,
o = (function(e) {
if (e && e.__esModule) return e;
if (null === e || ("object" !== typeof e && "function" !== typeof e))
return { default: e };
- var t = f();
+ var t = s();
if (t && t.has(e)) return t.get(e);
var n = {},
r = Object.defineProperty && Object.getOwnPropertyDescriptor;
@@ -238,22 +205,22 @@
}
(n.default = e), t && t.set(e, n);
return n;
- })(n(7294)),
- a = (r = n(617)) && r.__esModule ? r : { default: r },
- u = n(3367),
- i = n(4287),
- c = n(7845);
- function f() {
+ })(n("q1tI")),
+ a = (r = n("Xuae")) && r.__esModule ? r : { default: r },
+ i = n("lwAK"),
+ u = n("FYa8"),
+ c = n("/0+H");
+ function s() {
if ("function" !== typeof WeakMap) return null;
var e = new WeakMap();
return (
- (f = function() {
+ (s = function() {
return e;
}),
e
);
}
- function s() {
+ function f() {
var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0],
t = [o.default.createElement("meta", { charSet: "utf-8" })];
return (
@@ -293,7 +260,7 @@
}, [])
.reduce(l, [])
.reverse()
- .concat(s(t.inAmpMode))
+ .concat(f(t.inAmpMode))
.filter(
(function() {
var e = new Set(),
@@ -302,15 +269,15 @@
r = {};
return function(o) {
var a = !0,
- u = !1;
+ i = !1;
if (
o.key &&
"number" !== typeof o.key &&
o.key.indexOf("$") > 0
) {
- u = !0;
- var i = o.key.slice(o.key.indexOf("$") + 1);
- e.has(i) ? (a = !1) : e.add(i);
+ i = !0;
+ var u = o.key.slice(o.key.indexOf("$") + 1);
+ e.has(u) ? (a = !1) : e.add(u);
}
switch (o.type) {
case "title":
@@ -318,15 +285,15 @@
t.has(o.type) ? (a = !1) : t.add(o.type);
break;
case "meta":
- for (var c = 0, f = p.length; c < f; c++) {
- var s = p[c];
- if (o.props.hasOwnProperty(s))
- if ("charSet" === s) n.has(s) ? (a = !1) : n.add(s);
+ for (var c = 0, s = p.length; c < s; c++) {
+ var f = p[c];
+ if (o.props.hasOwnProperty(f))
+ if ("charSet" === f) n.has(f) ? (a = !1) : n.add(f);
else {
- var l = o.props[s],
- d = r[s] || new Set();
- ("name" === s && u) || !d.has(l)
- ? (d.add(l), (r[s] = d))
+ var l = o.props[f],
+ d = r[f] || new Set();
+ ("name" === f && i) || !d.has(l)
+ ? (d.add(l), (r[f] = d))
: (a = !1);
}
}
@@ -341,10 +308,10 @@
return o.default.cloneElement(e, { key: n });
});
}
- function h(e) {
+ function y(e) {
var t = e.children,
- n = (0, o.useContext)(u.AmpStateContext),
- r = (0, o.useContext)(i.HeadManagerContext);
+ n = (0, o.useContext)(i.AmpStateContext),
+ r = (0, o.useContext)(u.HeadManagerContext);
return o.default.createElement(
a.default,
{
@@ -355,19 +322,123 @@
t
);
}
- h.rewind = function() {};
- var y = h;
- t.default = y;
+ y.rewind = function() {};
+ var h = y;
+ t.default = h;
+ },
+ Bnag: function(e, t) {
+ e.exports = function() {
+ throw new TypeError(
+ "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
+ );
+ };
+ },
+ EbDI: function(e, t) {
+ e.exports = function(e) {
+ if ("undefined" !== typeof Symbol && Symbol.iterator in Object(e))
+ return Array.from(e);
+ };
+ },
+ FYa8: function(e, t, n) {
+ "use strict";
+ var r;
+ (t.__esModule = !0), (t.HeadManagerContext = void 0);
+ var o = ((r = n("q1tI")) && r.__esModule
+ ? r
+ : { default: r }
+ ).default.createContext({});
+ t.HeadManagerContext = o;
+ },
+ Ijbi: function(e, t, n) {
+ var r = n("WkPL");
+ e.exports = function(e) {
+ if (Array.isArray(e)) return r(e);
+ };
+ },
+ Nsbk: function(e, t) {
+ function n(t) {
+ return (
+ (e.exports = n = Object.setPrototypeOf
+ ? Object.getPrototypeOf
+ : function(e) {
+ return e.__proto__ || Object.getPrototypeOf(e);
+ }),
+ n(t)
+ );
+ }
+ e.exports = n;
+ },
+ PJYZ: function(e, t) {
+ e.exports = function(e) {
+ if (void 0 === e)
+ throw new ReferenceError(
+ "this hasn't been initialised - super() hasn't been called"
+ );
+ return e;
+ };
},
- 617: function(e, t, n) {
+ Qetd: function(e, t, n) {
"use strict";
- var r = n(319),
- o = n(4575),
- a = n(3913),
- u = (n(1506), n(2205)),
- i = n(8585),
- c = n(9754);
- function f(e) {
+ var r = Object.assign.bind(Object);
+ (e.exports = r), (e.exports.default = e.exports);
+ },
+ RIqP: function(e, t, n) {
+ var r = n("Ijbi"),
+ o = n("EbDI"),
+ a = n("ZhPi"),
+ i = n("Bnag");
+ e.exports = function(e) {
+ return r(e) || o(e) || a(e) || i();
+ };
+ },
+ SksO: function(e, t) {
+ function n(t, r) {
+ return (
+ (e.exports = n =
+ Object.setPrototypeOf ||
+ function(e, t) {
+ return (e.__proto__ = t), e;
+ }),
+ n(t, r)
+ );
+ }
+ e.exports = n;
+ },
+ TqRt: function(e, t) {
+ e.exports = function(e) {
+ return e && e.__esModule ? e : { default: e };
+ };
+ },
+ W8MJ: function(e, t) {
+ function n(e, t) {
+ for (var n = 0; n < t.length; n++) {
+ var r = t[n];
+ (r.enumerable = r.enumerable || !1),
+ (r.configurable = !0),
+ "value" in r && (r.writable = !0),
+ Object.defineProperty(e, r.key, r);
+ }
+ }
+ e.exports = function(e, t, r) {
+ return t && n(e.prototype, t), r && n(e, r), e;
+ };
+ },
+ WkPL: function(e, t) {
+ e.exports = function(e, t) {
+ (null == t || t > e.length) && (t = e.length);
+ for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
+ return r;
+ };
+ },
+ Xuae: function(e, t, n) {
+ "use strict";
+ var r = n("RIqP"),
+ o = n("lwsE"),
+ a = n("W8MJ"),
+ i = (n("PJYZ"), n("7W2i")),
+ u = n("a1gu"),
+ c = n("Nsbk");
+ function s(e) {
var t = (function() {
if ("undefined" === typeof Reflect || !Reflect.construct) return !1;
if (Reflect.construct.sham) return !1;
@@ -390,14 +461,14 @@
var o = c(this).constructor;
n = Reflect.construct(r, arguments, o);
} else n = r.apply(this, arguments);
- return i(this, n);
+ return u(this, n);
};
}
(t.__esModule = !0), (t.default = void 0);
- var s = n(7294),
+ var f = n("q1tI"),
l = (function(e) {
- u(n, e);
- var t = f(n);
+ i(n, e);
+ var t = s(n);
function n(e) {
var a;
return (
@@ -450,163 +521,85 @@
]),
n
);
- })(s.Component);
+ })(f.Component);
t.default = l;
},
- 900: function(e, t, n) {
- "use strict";
- var r = n(4575),
- o = n(3913),
- a = n(2205),
- u = n(8585),
- i = n(9754);
- function c(e) {
- var t = (function() {
- if ("undefined" === typeof Reflect || !Reflect.construct) return !1;
- if (Reflect.construct.sham) return !1;
- if ("function" === typeof Proxy) return !0;
- try {
- return (
- Date.prototype.toString.call(
- Reflect.construct(Date, [], function() {})
- ),
- !0
- );
- } catch (e) {
- return !1;
- }
- })();
- return function() {
- var n,
- r = i(e);
- if (t) {
- var o = i(this).constructor;
- n = Reflect.construct(r, arguments, o);
- } else n = r.apply(this, arguments);
- return u(this, n);
- };
- }
- var f = n(5318);
- (t.__esModule = !0), (t.default = void 0);
- var s = f(n(7294)),
- l = f(n(7947)),
- p = {
- 400: "Bad Request",
- 404: "This page could not be found",
- 405: "Method Not Allowed",
- 500: "Internal Server Error"
- };
- function d(e) {
- var t = e.res,
- n = e.err;
- return {
- statusCode: t && t.statusCode ? t.statusCode : n ? n.statusCode : 404
- };
- }
- var h = (function(e) {
- a(n, e);
- var t = c(n);
- function n() {
- return r(this, n), t.apply(this, arguments);
+ ZhPi: function(e, t, n) {
+ var r = n("WkPL");
+ e.exports = function(e, t) {
+ if (e) {
+ if ("string" === typeof e) return r(e, t);
+ var n = Object.prototype.toString.call(e).slice(8, -1);
+ return (
+ "Object" === n && e.constructor && (n = e.constructor.name),
+ "Map" === n || "Set" === n
+ ? Array.from(e)
+ : "Arguments" === n ||
+ /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
+ ? r(e, t)
+ : void 0
+ );
}
+ };
+ },
+ a1gu: function(e, t, n) {
+ var r = n("cDf5"),
+ o = n("PJYZ");
+ e.exports = function(e, t) {
+ return !t || ("object" !== r(t) && "function" !== typeof t) ? o(e) : t;
+ };
+ },
+ cDf5: function(e, t) {
+ function n(t) {
return (
- o(n, [
- {
- key: "render",
- value: function() {
- var e = this.props.statusCode,
- t =
- this.props.title ||
- p[e] ||
- "An unexpected error has occurred";
- return s.default.createElement(
- "div",
- { style: y.error },
- s.default.createElement(
- l.default,
- null,
- s.default.createElement("title", null, e, ": ", t)
- ),
- s.default.createElement(
- "div",
- null,
- s.default.createElement("style", {
- dangerouslySetInnerHTML: { __html: "body { margin: 0 }" }
- }),
- e
- ? s.default.createElement("h1", { style: y.h1 }, e)
- : null,
- s.default.createElement(
- "div",
- { style: y.desc },
- s.default.createElement("h2", { style: y.h2 }, t, ".")
- )
- )
- );
- }
- }
- ]),
- n
+ "function" === typeof Symbol && "symbol" === typeof Symbol.iterator
+ ? (e.exports = n = function(e) {
+ return typeof e;
+ })
+ : (e.exports = n = function(e) {
+ return e &&
+ "function" === typeof Symbol &&
+ e.constructor === Symbol &&
+ e !== Symbol.prototype
+ ? "symbol"
+ : typeof e;
+ }),
+ n(t)
+ );
+ }
+ e.exports = n;
+ },
+ lSNA: function(e, t) {
+ e.exports = function(e, t, n) {
+ return (
+ t in e
+ ? Object.defineProperty(e, t, {
+ value: n,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0
+ })
+ : (e[t] = n),
+ e
);
- })(s.default.Component);
- (t.default = h),
- (h.displayName = "ErrorPage"),
- (h.getInitialProps = d),
- (h.origGetInitialProps = d);
- var y = {
- error: {
- color: "#000",
- background: "#fff",
- fontFamily:
- '-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',
- height: "100vh",
- textAlign: "center",
- display: "flex",
- flexDirection: "column",
- alignItems: "center",
- justifyContent: "center"
- },
- desc: {
- display: "inline-block",
- textAlign: "left",
- lineHeight: "49px",
- height: "49px",
- verticalAlign: "middle"
- },
- h1: {
- display: "inline-block",
- borderRight: "1px solid rgba(0, 0, 0,.3)",
- margin: 0,
- marginRight: "20px",
- padding: "10px 23px 10px 0",
- fontSize: "24px",
- fontWeight: 500,
- verticalAlign: "top"
- },
- h2: {
- fontSize: "14px",
- fontWeight: "normal",
- lineHeight: "inherit",
- margin: 0,
- padding: 0
- }
};
},
- 4977: function(e, t, n) {
- (window.__NEXT_P = window.__NEXT_P || []).push([
- "/_error",
- function() {
- return n(900);
- }
- ]);
+ lwAK: function(e, t, n) {
+ "use strict";
+ var r;
+ (t.__esModule = !0), (t.AmpStateContext = void 0);
+ var o = ((r = n("q1tI")) && r.__esModule
+ ? r
+ : { default: r }
+ ).default.createContext({});
+ t.AmpStateContext = o;
+ },
+ lwsE: function(e, t) {
+ e.exports = function(e, t) {
+ if (!(e instanceof t))
+ throw new TypeError("Cannot call a class as a function");
+ };
}
},
- function(e) {
- e.O(0, [774], function() {
- return (t = 4977), e((e.s = t));
- var t;
- });
- var t = e.O();
- _N_E = t;
- }
+ [["04ac", 0, 1]]
]);
Diff for amp-89a5460c..4d99b567f.js
deleted
Diff for amp-9716187d..b5ac80aa8.js
@@ -0,0 +1,69 @@
+_N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
+ [6],
+ {
+ "/0+H": function(t, e, n) {
+ "use strict";
+ (e.__esModule = !0),
+ (e.isInAmpMode = i),
+ (e.useAmp = function() {
+ return i(u.default.useContext(r.AmpStateContext));
+ });
+ var o,
+ u = (o = n("q1tI")) && o.__esModule ? o : { default: o },
+ r = n("lwAK");
+ function i() {
+ var t =
+ arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
+ e = t.ampFirst,
+ n = void 0 !== e && e,
+ o = t.hybrid,
+ u = void 0 !== o && o,
+ r = t.hasQuery,
+ i = void 0 !== r && r;
+ return n || (u && i);
+ }
+ },
+ JjeS: function(t, e, n) {
+ t.exports = n("/0+H");
+ },
+ Q6ik: function(t, e, n) {
+ (window.__NEXT_P = window.__NEXT_P || []).push([
+ "/amp",
+ function() {
+ return n("rsBd");
+ }
+ ]);
+ },
+ Qetd: function(t, e, n) {
+ "use strict";
+ var o = Object.assign.bind(Object);
+ (t.exports = o), (t.exports.default = t.exports);
+ },
+ lwAK: function(t, e, n) {
+ "use strict";
+ var o;
+ (e.__esModule = !0), (e.AmpStateContext = void 0);
+ var u = ((o = n("q1tI")) && o.__esModule
+ ? o
+ : { default: o }
+ ).default.createContext({});
+ e.AmpStateContext = u;
+ },
+ rsBd: function(t, e, n) {
+ "use strict";
+ n.r(e),
+ n.d(e, "config", function() {
+ return u;
+ }),
+ n.d(e, "default", function() {
+ return r;
+ });
+ var o = n("JjeS"),
+ u = { amp: "hybrid" };
+ function r(t) {
+ return Object(o.useAmp)() ? "AMP mode" : "normal mode";
+ }
+ }
+ },
+ [["Q6ik", 0, 1]]
+]);
Diff for hooks-8c2e74..bffaebe37.js
@@ -1,12 +1,7 @@
-(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
- [757],
+_N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
+ [7],
{
- 6086: function(t) {
- "use strict";
- var n = Object.assign.bind(Object);
- (t.exports = n), (t.exports.default = t.exports);
- },
- 7690: function(t, n, r) {
+ "+MDD": function(t, n, r) {
"use strict";
function e(t, n) {
(null == n || n > t.length) && (n = t.length);
@@ -23,21 +18,21 @@
var r = [],
e = !0,
o = !1,
- u = void 0;
+ i = void 0;
try {
for (
- var i, a = t[Symbol.iterator]();
- !(e = (i = a.next()).done) &&
- (r.push(i.value), !n || r.length !== n);
+ var a, u = t[Symbol.iterator]();
+ !(e = (a = u.next()).done) &&
+ (r.push(a.value), !n || r.length !== n);
e = !0
);
} catch (c) {
- (o = !0), (u = c);
+ (o = !0), (i = c);
} finally {
try {
- e || null == a.return || a.return();
+ e || null == u.return || u.return();
} finally {
- if (o) throw u;
+ if (o) throw i;
}
}
return r;
@@ -65,59 +60,52 @@
})()
);
}
- r.r(n),
- r.d(n, {
- default: function() {
- return c;
- }
- });
- var u = r(7294),
- i = r.n(u),
- a = i().createElement,
- c = function() {
- var t = o(i().useState(0), 2),
- n = t[0],
- r = t[1],
- e = (0, u.useState)(0),
- c = e[0],
- l = e[1],
- f = i().useCallback(
- function() {
- r(n + 1);
- },
- [n]
- ),
- s = (0, u.useCallback)(
- function() {
- l(c + 1);
- },
- [c]
- );
- return a(
- i().Fragment,
- null,
- a("h3", null, "Clicks ", n),
- a("button", { onClick: f }, "Click me"),
- a("h3", null, "Clicks ", c),
- a("button", { onClick: s }, "Click me")
+ r.r(n);
+ var i = r("q1tI"),
+ a = r.n(i),
+ u = a.a.createElement;
+ n.default = function() {
+ var t = o(a.a.useState(0), 2),
+ n = t[0],
+ r = t[1],
+ e = Object(i.useState)(0),
+ c = e[0],
+ l = e[1],
+ s = a.a.useCallback(
+ function() {
+ r(n + 1);
+ },
+ [n]
+ ),
+ f = Object(i.useCallback)(
+ function() {
+ l(c + 1);
+ },
+ [c]
);
- };
+ return u(
+ a.a.Fragment,
+ null,
+ u("h3", null, "Clicks ", n),
+ u("button", { onClick: s }, "Click me"),
+ u("h3", null, "Clicks ", c),
+ u("button", { onClick: f }, "Click me")
+ );
+ };
+ },
+ Qetd: function(t, n, r) {
+ "use strict";
+ var e = Object.assign.bind(Object);
+ (t.exports = e), (t.exports.default = t.exports);
},
- 1470: function(t, n, r) {
+ g1vQ: function(t, n, r) {
(window.__NEXT_P = window.__NEXT_P || []).push([
"/hooks",
function() {
- return r(7690);
+ return r("+MDD");
}
]);
}
},
- function(t) {
- t.O(0, [774], function() {
- return (n = 1470), t((t.s = n));
- var n;
- });
- var n = t.O();
- _N_E = n;
- }
+ [["g1vQ", 0, 1]]
]);
Diff for index-ac435c..7f4e6ecf2.js
@@ -0,0 +1,25 @@
+_N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
+ [8],
+ {
+ RNiq: function(n, i, o) {
+ "use strict";
+ o.r(i);
+ var t = function() {
+ return "Hello world \ud83d\udc4b";
+ };
+ (t.getInitialProps = function() {
+ return {};
+ }),
+ (i.default = t);
+ },
+ vlRD: function(n, i, o) {
+ (window.__NEXT_P = window.__NEXT_P || []).push([
+ "/",
+ function() {
+ return o("RNiq");
+ }
+ ]);
+ }
+ },
+ [["vlRD", 0]]
+]);
Diff for index-fec729..e4a5583b2.js
deleted
Diff for link-dd34d9b..b3c040ade.js
@@ -1,15 +1,47 @@
-(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
- [644, 179],
+_N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
+ [9],
{
- 573: function(e, n, t) {
+ ObF3: function(e, n, t) {
"use strict";
- var r = t(3038),
- o = t(862);
- n.default = void 0;
- var a = o(t(7294)),
- c = t(1689),
- u = t(2441),
- i = t(5749),
+ t.r(n);
+ var r = t("q1tI"),
+ o = t.n(r),
+ a = t("YFqc"),
+ c = t.n(a),
+ u = o.a.createElement;
+ function i(e) {
+ return u(
+ "div",
+ null,
+ u("h3", null, "A Link page!"),
+ u(c.a, { href: "/" }, "Go to /")
+ );
+ }
+ (i.getInitialProps = function() {
+ return {};
+ }),
+ (n.default = i);
+ },
+ V8Sf: function(e, n, t) {
+ (window.__NEXT_P = window.__NEXT_P || []).push([
+ "/link",
+ function() {
+ return t("ObF3");
+ }
+ ]);
+ },
+ YFqc: function(e, n, t) {
+ e.exports = t("cTJO");
+ },
+ cTJO: function(e, n, t) {
+ "use strict";
+ var r = t("J4zp"),
+ o = t("284h");
+ (n.__esModule = !0), (n.default = void 0);
+ var a = o(t("q1tI")),
+ c = t("elyg"),
+ u = t("nOHt"),
+ i = t("vNVm"),
l = {};
function f(e, n, t, r) {
if (e && (0, c.isLocalURL)(n)) {
@@ -42,41 +74,41 @@
d = s.as,
v = e.children,
h = e.replace,
- y = e.shallow,
- g = e.scroll,
- E = e.locale;
+ g = e.shallow,
+ y = e.scroll,
+ b = e.locale;
"string" === typeof v && (v = a.default.createElement("a", null, v));
- var b = a.Children.only(v),
- _ = b && "object" === typeof b && b.ref,
- L = (0, i.useIntersection)({ rootMargin: "200px" }),
- k = r(L, 2),
- m = k[0],
- w = k[1],
- M = a.default.useCallback(
+ var _ = a.Children.only(v),
+ w = _ && "object" === typeof _ && _.ref,
+ E = (0, i.useIntersection)({ rootMargin: "200px" }),
+ m = r(E, 2),
+ L = m[0],
+ M = m[1],
+ k = a.default.useCallback(
function(e) {
- m(e),
- _ &&
- ("function" === typeof _
- ? _(e)
- : "object" === typeof _ && (_.current = e));
+ L(e),
+ w &&
+ ("function" === typeof w
+ ? w(e)
+ : "object" === typeof w && (w.current = e));
},
- [_, m]
+ [w, L]
);
(0, a.useEffect)(
function() {
- var e = w && n && (0, c.isLocalURL)(p),
- r = "undefined" !== typeof E ? E : t && t.locale,
+ var e = M && n && (0, c.isLocalURL)(p),
+ r = "undefined" !== typeof b ? b : t && t.locale,
o = l[p + "%" + d + (r ? "%" + r : "")];
e && !o && f(t, p, d, { locale: r });
},
- [d, p, w, E, n, t]
+ [d, p, M, b, n, t]
);
- var C = {
- ref: M,
+ var I = {
+ ref: k,
onClick: function(e) {
- b.props &&
- "function" === typeof b.props.onClick &&
- b.props.onClick(e),
+ _.props &&
+ "function" === typeof _.props.onClick &&
+ _.props.onClick(e),
e.defaultPrevented ||
(function(e, n, t, r, o, a, u, i) {
("A" !== e.currentTarget.nodeName ||
@@ -99,38 +131,38 @@
locale: i,
scroll: u
}));
- })(e, t, p, d, h, y, g, E);
+ })(e, t, p, d, h, g, y, b);
},
onMouseEnter: function(e) {
(0, c.isLocalURL)(p) &&
- (b.props &&
- "function" === typeof b.props.onMouseEnter &&
- b.props.onMouseEnter(e),
+ (_.props &&
+ "function" === typeof _.props.onMouseEnter &&
+ _.props.onMouseEnter(e),
f(t, p, d, { priority: !0 }));
}
};
- if (e.passHref || ("a" === b.type && !("href" in b.props))) {
- var I = "undefined" !== typeof E ? E : t && t.locale,
- N =
+ if (e.passHref || ("a" === _.type && !("href" in _.props))) {
+ var N = "undefined" !== typeof b ? b : t && t.locale,
+ C =
t &&
t.isLocaleDomain &&
(0, c.getDomainLocale)(
d,
- I,
+ N,
t && t.locales,
t && t.domainLocales
);
- C.href =
- N ||
- (0, c.addBasePath)((0, c.addLocale)(d, I, t && t.defaultLocale));
+ I.href =
+ C ||
+ (0, c.addBasePath)((0, c.addLocale)(d, N, t && t.defaultLocale));
}
- return a.default.cloneElement(b, C);
+ return a.default.cloneElement(_, I);
};
n.default = s;
},
- 5749: function(e, n, t) {
+ vNVm: function(e, n, t) {
"use strict";
- var r = t(3038);
+ var r = t("J4zp");
(n.__esModule = !0),
(n.useIntersection = function(e) {
var n = e.rootMargin,
@@ -209,50 +241,11 @@
[d, s]
);
});
- var o = t(7294),
- a = t(8391),
+ var o = t("q1tI"),
+ a = t("0G5g"),
c = "undefined" !== typeof IntersectionObserver;
var u = new Map();
- },
- 8189: function(e, n, t) {
- "use strict";
- t.r(n);
- var r = t(7294),
- o = t.n(r),
- a = t(1664),
- c = o().createElement;
- function u(e) {
- return c(
- "div",
- null,
- c("h3", null, "A Link page!"),
- c(a.default, { href: "/" }, "Go to /")
- );
- }
- (u.getInitialProps = function() {
- return {};
- }),
- (n.default = u);
- },
- 7847: function(e, n, t) {
- (window.__NEXT_P = window.__NEXT_P || []).push([
- "/link",
- function() {
- return t(8189);
- }
- ]);
- },
- 1664: function(e, n, t) {
- e.exports = t(573);
- },
- 4453: function() {}
+ }
},
- function(e) {
- e.O(0, [774, 597], function() {
- return (n = 7847), e((e.s = n));
- var n;
- });
- var n = e.O();
- _N_E = n;
- }
+ [["V8Sf", 0, 1, 2]]
]);
Diff for routerDirect..493f2dc9d.js
@@ -0,0 +1,31 @@
+_N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
+ [10],
+ {
+ "20a2": function(t, n, r) {
+ t.exports = r("nOHt");
+ },
+ LtRI: function(t, n, r) {
+ (window.__NEXT_P = window.__NEXT_P || []).push([
+ "/routerDirect",
+ function() {
+ return r("jSAA");
+ }
+ ]);
+ },
+ jSAA: function(t, n, r) {
+ "use strict";
+ r.r(n);
+ var e = r("q1tI"),
+ i = r.n(e),
+ o = (r("20a2"), i.a.createElement);
+ function u(t) {
+ return o("div", null, "I import the router directly");
+ }
+ (u.getInitialProps = function() {
+ return {};
+ }),
+ (n.default = u);
+ }
+ },
+ [["LtRI", 0, 1, 2]]
+]);
Diff for routerDirect..e50665759.js
deleted
Diff for withRouter-1..d427898bf.js
deleted
Diff for withRouter-6..e15290e02.js
@@ -0,0 +1,32 @@
+_N_E = (window.webpackJsonp_N_E = window.webpackJsonp_N_E || []).push([
+ [11],
+ {
+ "0Hlz": function(n, t, e) {
+ "use strict";
+ e.r(t);
+ var u = e("q1tI"),
+ i = e.n(u),
+ o = e("20a2"),
+ r = i.a.createElement;
+ function w(n) {
+ return r("div", null, "I use withRouter");
+ }
+ (w.getInitialProps = function() {
+ return {};
+ }),
+ (t.default = Object(o.withRouter)(w));
+ },
+ "20a2": function(n, t, e) {
+ n.exports = e("nOHt");
+ },
+ eThv: function(n, t, e) {
+ (window.__NEXT_P = window.__NEXT_P || []).push([
+ "/withRouter",
+ function() {
+ return e("0Hlz");
+ }
+ ]);
+ }
+ },
+ [["eThv", 0, 1, 2]]
+]);
Diff for 597-e27c5352..a0901db8c.js
Diff too large to display
Diff for 778-0cefc755..8b30e20c3.js
deleted
Diff for framework.HASH.js
Diff too large to display
Diff for main-HASH.js
Diff too large to display
Diff for polyfills-HASH.js
failed to diff
Diff for webpack-HASH.js
@@ -1,114 +1,90 @@
-!(function() {
- "use strict";
- var r = {},
- e = {};
- function t(n) {
- var o = e[n];
- if (void 0 !== o) return o.exports;
- var i = (e[n] = { exports: {} }),
- u = !0;
+!(function(e) {
+ function r(r) {
+ for (
+ var n, l, f = r[0], i = r[1], a = r[2], c = 0, s = [];
+ c < f.length;
+ c++
+ )
+ (l = f[c]),
+ Object.prototype.hasOwnProperty.call(o, l) && o[l] && s.push(o[l][0]),
+ (o[l] = 0);
+ for (n in i) Object.prototype.hasOwnProperty.call(i, n) && (e[n] = i[n]);
+ for (p && p(r); s.length; ) s.shift()();
+ return u.push.apply(u, a || []), t();
+ }
+ function t() {
+ for (var e, r = 0; r < u.length; r++) {
+ for (var t = u[r], n = !0, f = 1; f < t.length; f++) {
+ var i = t[f];
+ 0 !== o[i] && (n = !1);
+ }
+ n && (u.splice(r--, 1), (e = l((l.s = t[0]))));
+ }
+ return e;
+ }
+ var n = {},
+ o = { 0: 0 },
+ u = [];
+ function l(r) {
+ if (n[r]) return n[r].exports;
+ var t = (n[r] = { i: r, l: !1, exports: {} }),
+ o = !0;
try {
- r[n](i, i.exports, t), (u = !1);
+ e[r].call(t.exports, t, t.exports, l), (o = !1);
} finally {
- u && delete e[n];
+ o && delete n[r];
}
- return i.exports;
+ return (t.l = !0), t.exports;
}
- (t.m = r),
- (function() {
- var r = [];
- t.O = function(e, n, o, i) {
- if (!n) {
- var u = 1 / 0;
- for (a = 0; a < r.length; a++) {
- (n = r[a][0]), (o = r[a][1]), (i = r[a][2]);
- for (var c = !0, f = 0; f < n.length; f++)
- (!1 & i || u >= i) &&
- Object.keys(t.O).every(function(r) {
- return t.O[r](n[f]);
- })
- ? n.splice(f--, 1)
- : ((c = !1), i < u && (u = i));
- c && (r.splice(a--, 1), (e = o()));
- }
- return e;
- }
- i = i || 0;
- for (var a = r.length; a > 0 && r[a - 1][2] > i; a--) r[a] = r[a - 1];
- r[a] = [n, o, i];
- };
- })(),
- (t.n = function(r) {
- var e =
- r && r.__esModule
+ (l.m = e),
+ (l.c = n),
+ (l.d = function(e, r, t) {
+ l.o(e, r) || Object.defineProperty(e, r, { enumerable: !0, get: t });
+ }),
+ (l.r = function(e) {
+ "undefined" !== typeof Symbol &&
+ Symbol.toStringTag &&
+ Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }),
+ Object.defineProperty(e, "__esModule", { value: !0 });
+ }),
+ (l.t = function(e, r) {
+ if ((1 & r && (e = l(e)), 8 & r)) return e;
+ if (4 & r && "object" === typeof e && e && e.__esModule) return e;
+ var t = Object.create(null);
+ if (
+ (l.r(t),
+ Object.defineProperty(t, "default", { enumerable: !0, value: e }),
+ 2 & r && "string" != typeof e)
+ )
+ for (var n in e)
+ l.d(
+ t,
+ n,
+ function(r) {
+ return e[r];
+ }.bind(null, n)
+ );
+ return t;
+ }),
+ (l.n = function(e) {
+ var r =
+ e && e.__esModule
? function() {
- return r.default;
+ return e.default;
}
: function() {
- return r;
+ return e;
};
- return t.d(e, { a: e }), e;
- }),
- (t.d = function(r, e) {
- for (var n in e)
- t.o(e, n) &&
- !t.o(r, n) &&
- Object.defineProperty(r, n, { enumerable: !0, get: e[n] });
+ return l.d(r, "a", r), r;
}),
- (t.g = (function() {
- if ("object" === typeof globalThis) return globalThis;
- try {
- return this || new Function("return this")();
- } catch (r) {
- if ("object" === typeof window) return window;
- }
- })()),
- (t.o = function(r, e) {
- return Object.prototype.hasOwnProperty.call(r, e);
+ (l.o = function(e, r) {
+ return Object.prototype.hasOwnProperty.call(e, r);
}),
- (t.r = function(r) {
- "undefined" !== typeof Symbol &&
- Symbol.toStringTag &&
- Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }),
- Object.defineProperty(r, "__esModule", { value: !0 });
- }),
- (function() {
- var r;
- t.g.importScripts && (r = t.g.location + "");
- var e = t.g.document;
- if (!r && e && (e.currentScript && (r = e.currentScript.src), !r)) {
- var n = e.getElementsByTagName("script");
- n.length && (r = n[n.length - 1].src);
- }
- if (!r)
- throw new Error(
- "Automatic publicPath is not supported in this browser"
- );
- (r = r
- .replace(/#.*$/, "")
- .replace(/\?.*$/, "")
- .replace(/\/[^\/]+$/, "/")),
- (t.p = r + "../../");
- })(),
- (function() {
- var r = { 272: 0 };
Post job cleanup.
[command]/usr/bin/git version
git version 2.31.0
[command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
[command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
[command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
http.https://github.com/.extraheader
[command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
Cleaning up orphan processes
Commit: 76e10e5b88ba4fdc04416077538e9e4b75b76258
SokratisVidros
pushed a commit
to SokratisVidros/next.js
that referenced
this pull request
Apr 20, 2021
flybayer
pushed a commit
to blitz-js/next.js
that referenced
this pull request
Apr 29, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This can be brought back on canary once a new stable version is out.
Bug
fixes #number
Feature
fixes #number
Documentation / Examples