-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[Breaking] Update default browserslist config #84401
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
Conversation
baseline widely available
as default browserslist
Tests Passed |
Stats from current PRDefault Build (Increase detected
|
vercel/next.js canary | vercel/next.js mischnic/modern-browserslist | Change | |
---|---|---|---|
buildDuration | 22.5s | 19.3s | N/A |
buildDurationCached | 18.1s | 14.8s | N/A |
nodeModulesSize | 445 MB | 445 MB | N/A |
nextStartRea..uration (ms) | 695ms | 699ms | N/A |
Client Bundles (main, webpack)
vercel/next.js canary | vercel/next.js mischnic/modern-browserslist | Change | |
---|---|---|---|
234bef07-HASH.js gzip | 55 kB | 55 kB | ✓ |
3414-HASH.js gzip | 4.33 kB | N/A | N/A |
5194.HASH.js gzip | 169 B | 169 B | ✓ |
8863-HASH.js gzip | 5.22 kB | 5.18 kB | N/A |
9304-HASH.js gzip | 46.4 kB | 45.3 kB | N/A |
framework-HASH.js gzip | 57.7 kB | 57.7 kB | N/A |
main-app-HASH.js gzip | 261 B | 257 B | N/A |
main-HASH.js gzip | 37 kB | 36.1 kB | N/A |
webpack-HASH.js gzip | 1.69 kB | 1.69 kB | N/A |
Overall change | 55.1 kB | 55.1 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | vercel/next.js mischnic/modern-browserslist | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 39.4 kB | 39.4 kB | ✓ |
Overall change | 39.4 kB | 39.4 kB | ✓ |
Client Pages Overall increase ⚠️
vercel/next.js canary | vercel/next.js mischnic/modern-browserslist | Change | |
---|---|---|---|
_app-HASH.js gzip | 194 B | 193 B | N/A |
_error-HASH.js gzip | 182 B | 182 B | ✓ |
css-HASH.js gzip | 335 B | 333 B | N/A |
dynamic-HASH.js gzip | 1.83 kB | 1.81 kB | N/A |
edge-ssr-HASH.js gzip | 255 B | 255 B | ✓ |
head-HASH.js gzip | 350 B | 352 B | N/A |
hooks-HASH.js gzip | 385 B | 383 B | N/A |
image-HASH.js gzip | 581 B | 4.67 kB | |
index-HASH.js gzip | 257 B | 259 B | N/A |
link-HASH.js gzip | 2.28 kB | 2.27 kB | N/A |
routerDirect..HASH.js gzip | 320 B | 318 B | N/A |
script-HASH.js gzip | 387 B | 386 B | N/A |
withRouter-HASH.js gzip | 315 B | 313 B | N/A |
1afbb74e6ecf..834.css gzip | 106 B | 106 B | ✓ |
Overall change | 1.12 kB | 5.22 kB |
Client Build Manifests
vercel/next.js canary | vercel/next.js mischnic/modern-browserslist | Change | |
---|---|---|---|
_buildManifest.js gzip | 738 B | 720 B | N/A |
Overall change | 0 B | 0 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | vercel/next.js mischnic/modern-browserslist | Change | |
---|---|---|---|
index.html gzip | 524 B | 522 B | N/A |
link.html gzip | 538 B | 537 B | N/A |
withRouter.html gzip | 519 B | 520 B | N/A |
Overall change | 0 B | 0 B | ✓ |
Edge SSR bundle Size
vercel/next.js canary | vercel/next.js mischnic/modern-browserslist | Change | |
---|---|---|---|
edge-ssr.js gzip | 121 kB | 121 kB | N/A |
page.js gzip | 242 kB | 241 kB | N/A |
Overall change | 0 B | 0 B | ✓ |
Middleware size Overall increase ⚠️
vercel/next.js canary | vercel/next.js mischnic/modern-browserslist | Change | |
---|---|---|---|
middleware-b..fest.js gzip | 652 B | 636 B | N/A |
middleware-r..fest.js gzip | 156 B | 155 B | N/A |
middleware.js gzip | 32.6 kB | 33 kB | |
edge-runtime..pack.js gzip | 846 B | 846 B | ✓ |
Overall change | 33.5 kB | 33.8 kB |
Next Runtimes
vercel/next.js canary | vercel/next.js mischnic/modern-browserslist | Change | |
---|---|---|---|
app-page-exp...dev.js gzip | 289 kB | 287 kB | N/A |
app-page-exp..prod.js gzip | 159 kB | 158 kB | N/A |
app-page-tur...dev.js gzip | 289 kB | 287 kB | N/A |
app-page-tur..prod.js gzip | 159 kB | 158 kB | N/A |
app-page-tur...dev.js gzip | 281 kB | 280 kB | N/A |
app-page-tur..prod.js gzip | 153 kB | 152 kB | N/A |
app-page.run...dev.js gzip | 281 kB | 280 kB | N/A |
app-page.run..prod.js gzip | 153 kB | 152 kB | N/A |
app-route-ex...dev.js gzip | 69.9 kB | 69.8 kB | N/A |
app-route-ex..prod.js gzip | 49.2 kB | 49.1 kB | N/A |
app-route-tu...dev.js gzip | 70 kB | 69.8 kB | N/A |
app-route-tu..prod.js gzip | 49.2 kB | 49.1 kB | N/A |
app-route-tu...dev.js gzip | 69.4 kB | 69.2 kB | N/A |
app-route-tu..prod.js gzip | 48.9 kB | 48.8 kB | N/A |
app-route.ru...dev.js gzip | 69.3 kB | 69.2 kB | N/A |
app-route.ru..prod.js gzip | 48.8 kB | 48.7 kB | N/A |
dist_client_...dev.js gzip | 326 B | 326 B | ✓ |
dist_client_...dev.js gzip | 328 B | 328 B | ✓ |
dist_client_...dev.js gzip | 320 B | 320 B | ✓ |
dist_client_...dev.js gzip | 318 B | 318 B | ✓ |
pages-api-tu...dev.js gzip | 42.9 kB | 42.8 kB | N/A |
pages-api-tu..prod.js gzip | 33 kB | 32.9 kB | N/A |
pages-api.ru...dev.js gzip | 42.9 kB | 42.7 kB | N/A |
pages-api.ru..prod.js gzip | 33 kB | 32.9 kB | N/A |
pages-turbo....dev.js gzip | 52.7 kB | 52.5 kB | N/A |
pages-turbo...prod.js gzip | 40.2 kB | 40 kB | N/A |
pages.runtim...dev.js gzip | 52.7 kB | 52.5 kB | N/A |
pages.runtim..prod.js gzip | 40.1 kB | 40 kB | N/A |
server.runti..prod.js gzip | 78.3 kB | 78 kB | N/A |
Overall change | 1.29 kB | 1.29 kB | ✓ |
build cache
vercel/next.js canary | vercel/next.js mischnic/modern-browserslist | Change | |
---|---|---|---|
0.pack gzip | 3.06 MB | 3.05 MB | N/A |
index.pack gzip | 92.7 kB | 91.4 kB | N/A |
Overall change | 0 B | 0 B | ✓ |
Diff details
Diff for page.js
Diff too large to display
Diff for middleware-b..-manifest.js
@@ -3,92 +3,91 @@ globalThis.__BUILD_MANIFEST = {
devFiles: [],
lowPriorityFiles: [],
rootMainFiles: [
- "static/chunks/webpack-9033d89fb26d0013.js",
- "static/chunks/234bef07-d840ba5c8ed2d8d4.js",
- "static/chunks/9304-697f7baf081a3660.js",
- "static/chunks/main-app-7c23686c32143052.js",
+ "static/chunks/webpack-9ac9ccb761b5e915.js",
+ "static/chunks/066e8be7-6e6f255cdd8d532a.js",
+ "static/chunks/2426-a51e85594714a8c4.js",
+ "static/chunks/main-app-55a5635e63846c0c.js",
],
rootMainFilesTree: {},
pages: {
"/": [
- "static/chunks/webpack-9033d89fb26d0013.js",
- "static/chunks/framework-01cd9f2fab3511bf.js",
- "static/chunks/main-ce4e264e3c9f5a2f.js",
- "static/chunks/pages/index-a7fb71e5f6213aa9.js",
+ "static/chunks/webpack-9ac9ccb761b5e915.js",
+ "static/chunks/framework-1382d6eb4c03f4cb.js",
+ "static/chunks/main-1b41ba4cb21110aa.js",
+ "static/chunks/pages/index-75ff7f75f4c9520b.js",
],
"/_app": [
- "static/chunks/webpack-9033d89fb26d0013.js",
- "static/chunks/framework-01cd9f2fab3511bf.js",
- "static/chunks/main-ce4e264e3c9f5a2f.js",
- "static/chunks/pages/_app-4f1e07139b8bc0f4.js",
+ "static/chunks/webpack-9ac9ccb761b5e915.js",
+ "static/chunks/framework-1382d6eb4c03f4cb.js",
+ "static/chunks/main-1b41ba4cb21110aa.js",
+ "static/chunks/pages/_app-0e29c8719fa68d07.js",
],
"/_error": [
- "static/chunks/webpack-9033d89fb26d0013.js",
- "static/chunks/framework-01cd9f2fab3511bf.js",
- "static/chunks/main-ce4e264e3c9f5a2f.js",
- "static/chunks/pages/_error-8f4e796cc66bb887.js",
+ "static/chunks/webpack-9ac9ccb761b5e915.js",
+ "static/chunks/framework-1382d6eb4c03f4cb.js",
+ "static/chunks/main-1b41ba4cb21110aa.js",
+ "static/chunks/pages/_error-21398e242bebd4bd.js",
],
"/css": [
- "static/chunks/webpack-9033d89fb26d0013.js",
- "static/chunks/framework-01cd9f2fab3511bf.js",
- "static/chunks/main-ce4e264e3c9f5a2f.js",
+ "static/chunks/webpack-9ac9ccb761b5e915.js",
+ "static/chunks/framework-1382d6eb4c03f4cb.js",
+ "static/chunks/main-1b41ba4cb21110aa.js",
"static/css/ded6b86ab9cc0a1f.css",
- "static/chunks/pages/css-30fd1831d1c5954d.js",
+ "static/chunks/pages/css-f0abb8f1d5d6aafc.js",
],
"/dynamic": [
- "static/chunks/webpack-9033d89fb26d0013.js",
- "static/chunks/framework-01cd9f2fab3511bf.js",
- "static/chunks/main-ce4e264e3c9f5a2f.js",
- "static/chunks/pages/dynamic-933632969493a23b.js",
+ "static/chunks/webpack-9ac9ccb761b5e915.js",
+ "static/chunks/framework-1382d6eb4c03f4cb.js",
+ "static/chunks/main-1b41ba4cb21110aa.js",
+ "static/chunks/pages/dynamic-6ff670779f690888.js",
],
"/edge-ssr": [
- "static/chunks/webpack-9033d89fb26d0013.js",
- "static/chunks/framework-01cd9f2fab3511bf.js",
- "static/chunks/main-ce4e264e3c9f5a2f.js",
- "static/chunks/pages/edge-ssr-fbde6d2b170ddc8a.js",
+ "static/chunks/webpack-9ac9ccb761b5e915.js",
+ "static/chunks/framework-1382d6eb4c03f4cb.js",
+ "static/chunks/main-1b41ba4cb21110aa.js",
+ "static/chunks/pages/edge-ssr-8437b1c654938313.js",
],
"/head": [
- "static/chunks/webpack-9033d89fb26d0013.js",
- "static/chunks/framework-01cd9f2fab3511bf.js",
- "static/chunks/main-ce4e264e3c9f5a2f.js",
- "static/chunks/pages/head-0fcabd05d9a7b019.js",
+ "static/chunks/webpack-9ac9ccb761b5e915.js",
+ "static/chunks/framework-1382d6eb4c03f4cb.js",
+ "static/chunks/main-1b41ba4cb21110aa.js",
+ "static/chunks/pages/head-957c9636cda350bb.js",
],
"/hooks": [
- "static/chunks/webpack-9033d89fb26d0013.js",
- "static/chunks/framework-01cd9f2fab3511bf.js",
- "static/chunks/main-ce4e264e3c9f5a2f.js",
- "static/chunks/pages/hooks-52423902769dcda6.js",
+ "static/chunks/webpack-9ac9ccb761b5e915.js",
+ "static/chunks/framework-1382d6eb4c03f4cb.js",
+ "static/chunks/main-1b41ba4cb21110aa.js",
+ "static/chunks/pages/hooks-48956e83e76a0b7c.js",
],
"/image": [
- "static/chunks/webpack-9033d89fb26d0013.js",
- "static/chunks/framework-01cd9f2fab3511bf.js",
- "static/chunks/main-ce4e264e3c9f5a2f.js",
- "static/chunks/3414-0fcfc359d1626bc2.js",
- "static/chunks/pages/image-bcf65fa5afa25af3.js",
+ "static/chunks/webpack-9ac9ccb761b5e915.js",
+ "static/chunks/framework-1382d6eb4c03f4cb.js",
+ "static/chunks/main-1b41ba4cb21110aa.js",
+ "static/chunks/pages/image-674f6583ca77f09d.js",
],
"/link": [
- "static/chunks/webpack-9033d89fb26d0013.js",
- "static/chunks/framework-01cd9f2fab3511bf.js",
- "static/chunks/main-ce4e264e3c9f5a2f.js",
- "static/chunks/pages/link-107187295a8a4aea.js",
+ "static/chunks/webpack-9ac9ccb761b5e915.js",
+ "static/chunks/framework-1382d6eb4c03f4cb.js",
+ "static/chunks/main-1b41ba4cb21110aa.js",
+ "static/chunks/pages/link-8f5986b0d9d4a299.js",
],
"/routerDirect": [
- "static/chunks/webpack-9033d89fb26d0013.js",
- "static/chunks/framework-01cd9f2fab3511bf.js",
- "static/chunks/main-ce4e264e3c9f5a2f.js",
- "static/chunks/pages/routerDirect-1422147417dba74a.js",
+ "static/chunks/webpack-9ac9ccb761b5e915.js",
+ "static/chunks/framework-1382d6eb4c03f4cb.js",
+ "static/chunks/main-1b41ba4cb21110aa.js",
+ "static/chunks/pages/routerDirect-77c6ee7fa90e109b.js",
],
"/script": [
- "static/chunks/webpack-9033d89fb26d0013.js",
- "static/chunks/framework-01cd9f2fab3511bf.js",
- "static/chunks/main-ce4e264e3c9f5a2f.js",
- "static/chunks/pages/script-a68c215ba4b2c288.js",
+ "static/chunks/webpack-9ac9ccb761b5e915.js",
+ "static/chunks/framework-1382d6eb4c03f4cb.js",
+ "static/chunks/main-1b41ba4cb21110aa.js",
+ "static/chunks/pages/script-3460a518b06b339e.js",
],
"/withRouter": [
- "static/chunks/webpack-9033d89fb26d0013.js",
- "static/chunks/framework-01cd9f2fab3511bf.js",
- "static/chunks/main-ce4e264e3c9f5a2f.js",
- "static/chunks/pages/withRouter-0af6fb4f6ceaec8e.js",
+ "static/chunks/webpack-9ac9ccb761b5e915.js",
+ "static/chunks/framework-1382d6eb4c03f4cb.js",
+ "static/chunks/main-1b41ba4cb21110aa.js",
+ "static/chunks/pages/withRouter-0a50058d9954ea8e.js",
],
},
};
Diff for middleware.js
Diff too large to display
Diff for edge-ssr.js
Diff too large to display
Diff for _buildManifest.js
@@ -611,35 +611,32 @@ self.__BUILD_MANIFEST = (function (a, b, c) {
numHashes: NaN,
bitArray: [],
},
- "/": ["static\u002Fchunks\u002Fpages\u002Findex-a7fb71e5f6213aa9.js"],
+ "/": ["static\u002Fchunks\u002Fpages\u002Findex-75ff7f75f4c9520b.js"],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-8f4e796cc66bb887.js",
+ "static\u002Fchunks\u002Fpages\u002F_error-21398e242bebd4bd.js",
],
"/css": [
"static\u002Fcss\u002Fded6b86ab9cc0a1f.css",
- "static\u002Fchunks\u002Fpages\u002Fcss-30fd1831d1c5954d.js",
+ "static\u002Fchunks\u002Fpages\u002Fcss-f0abb8f1d5d6aafc.js",
],
"/dynamic": [
- "static\u002Fchunks\u002Fpages\u002Fdynamic-933632969493a23b.js",
+ "static\u002Fchunks\u002Fpages\u002Fdynamic-6ff670779f690888.js",
],
"/edge-ssr": [
- "static\u002Fchunks\u002Fpages\u002Fedge-ssr-fbde6d2b170ddc8a.js",
+ "static\u002Fchunks\u002Fpages\u002Fedge-ssr-8437b1c654938313.js",
],
- "/head": ["static\u002Fchunks\u002Fpages\u002Fhead-0fcabd05d9a7b019.js"],
- "/hooks": ["static\u002Fchunks\u002Fpages\u002Fhooks-52423902769dcda6.js"],
- "/image": [
- "static\u002Fchunks\u002F3414-0fcfc359d1626bc2.js",
- "static\u002Fchunks\u002Fpages\u002Fimage-bcf65fa5afa25af3.js",
- ],
- "/link": ["static\u002Fchunks\u002Fpages\u002Flink-107187295a8a4aea.js"],
+ "/head": ["static\u002Fchunks\u002Fpages\u002Fhead-957c9636cda350bb.js"],
+ "/hooks": ["static\u002Fchunks\u002Fpages\u002Fhooks-48956e83e76a0b7c.js"],
+ "/image": ["static\u002Fchunks\u002Fpages\u002Fimage-674f6583ca77f09d.js"],
+ "/link": ["static\u002Fchunks\u002Fpages\u002Flink-8f5986b0d9d4a299.js"],
"/routerDirect": [
- "static\u002Fchunks\u002Fpages\u002FrouterDirect-1422147417dba74a.js",
+ "static\u002Fchunks\u002Fpages\u002FrouterDirect-77c6ee7fa90e109b.js",
],
"/script": [
- "static\u002Fchunks\u002Fpages\u002Fscript-a68c215ba4b2c288.js",
+ "static\u002Fchunks\u002Fpages\u002Fscript-3460a518b06b339e.js",
],
"/withRouter": [
- "static\u002Fchunks\u002Fpages\u002FwithRouter-0af6fb4f6ceaec8e.js",
+ "static\u002Fchunks\u002Fpages\u002FwithRouter-0a50058d9954ea8e.js",
],
sortedPages: [
"\u002F",
Diff for css-HASH.js
@@ -1,7 +1,14 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[9813],
{
- /***/ 5267: /***/ (
+ /***/ 1978: /***/ (module) => {
+ // extracted by mini-css-extract-plugin
+ module.exports = { helloWorld: "css_helloWorld__aUdUq" };
+
+ /***/
+ },
+
+ /***/ 6941: /***/ (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
@@ -15,7 +22,7 @@
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
__webpack_require__(7765);
/* harmony import */ var _css_module_css__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(6320);
+ __webpack_require__(1978);
/* harmony import */ var _css_module_css__WEBPACK_IMPORTED_MODULE_1___default =
/*#__PURE__*/ __webpack_require__.n(
_css_module_css__WEBPACK_IMPORTED_MODULE_1__
@@ -35,14 +42,7 @@
/***/
},
- /***/ 6320: /***/ (module) => {
- // extracted by mini-css-extract-plugin
- module.exports = { helloWorld: "css_helloWorld__aUdUq" };
-
- /***/
- },
-
- /***/ 9643: /***/ (
+ /***/ 8685: /***/ (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
@@ -50,7 +50,7 @@
(window.__NEXT_P = window.__NEXT_P || []).push([
"/css",
function () {
- return __webpack_require__(5267);
+ return __webpack_require__(6941);
},
]);
if (false) {
@@ -64,7 +64,7 @@
/******/ var __webpack_exec__ = (moduleId) =>
__webpack_require__((__webpack_require__.s = moduleId));
/******/ __webpack_require__.O(0, [636, 6593, 8792], () =>
- __webpack_exec__(9643)
+ __webpack_exec__(8685)
);
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for dynamic-HASH.js
@@ -1,17 +1,63 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[2291],
{
- /***/ 2406: /***/ (
- module,
- __unused_webpack_exports,
+ /***/ 2839: /***/ (
+ __unused_webpack_module,
+ __webpack_exports__,
__webpack_require__
) => {
- module.exports = __webpack_require__(8949);
+ "use strict";
+ __webpack_require__.r(__webpack_exports__);
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
+ /* harmony export */ __N_SSP: () => /* binding */ __N_SSP,
+ /* harmony export */ default: () => __WEBPACK_DEFAULT_EXPORT__,
+ /* harmony export */
+ });
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
+ __webpack_require__(7765);
+ /* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_1__ =
+ __webpack_require__(7444);
+ /* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_1___default =
+ /*#__PURE__*/ __webpack_require__.n(
+ next_dynamic__WEBPACK_IMPORTED_MODULE_1__
+ );
+
+ const DynamicHello = next_dynamic__WEBPACK_IMPORTED_MODULE_1___default()(
+ () =>
+ __webpack_require__
+ .e(/* import() */ 1376)
+ .then(__webpack_require__.bind(__webpack_require__, 1376))
+ .then((mod) => mod.Hello),
+ {
+ loadableGenerated: {
+ webpack: () => [/*require.resolve*/ 1376],
+ },
+ }
+ );
+ const Page = () =>
+ /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(
+ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment,
+ {
+ children: [
+ /*#__PURE__*/ (0,
+ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p", {
+ children: "testing next/dynamic size",
+ }),
+ /*#__PURE__*/ (0,
+ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
+ DynamicHello,
+ {}
+ ),
+ ],
+ }
+ );
+ var __N_SSP = true;
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = Page;
/***/
},
- /***/ 4466: /***/ (
+ /***/ 4478: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -53,7 +99,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
const _react = /*#__PURE__*/ _interop_require_default._(
__webpack_require__(5977)
);
- const _loadablecontextsharedruntime = __webpack_require__(8452);
+ const _loadablecontextsharedruntime = __webpack_require__(5792);
function resolve(obj) {
return obj && obj.default ? obj.default : obj;
}
@@ -175,6 +221,14 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
return /*#__PURE__*/ _react.default.forwardRef(LoadableComponent);
}
class LoadableSubscription {
+ constructor(loadFn, opts) {
+ this._loadFn = loadFn;
+ this._opts = opts;
+ this._callbacks = new Set();
+ this._delay = null;
+ this._timeout = null;
+ this.retry();
+ }
promise() {
return this._res.promise;
}
@@ -240,14 +294,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
this._callbacks.delete(callback);
};
}
- constructor(loadFn, opts) {
- this._loadFn = loadFn;
- this._opts = opts;
- this._callbacks = new Set();
- this._delay = null;
- this._timeout = null;
- this.retry();
- }
}
function Loadable(opts) {
return createLoadableComponent(load, opts);
@@ -269,8 +315,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
flushInitializers(ALL_INITIALIZERS).then(resolveInitializers, reject);
});
};
- Loadable.preloadReady = (ids) => {
- if (ids === void 0) ids = [];
+ Loadable.preloadReady = (ids = []) => {
return new Promise((resolvePreload) => {
const res = () => {
initialized = true;
@@ -288,63 +333,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
/***/
},
- /***/ 4545: /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
- /* harmony export */ __N_SSP: () => /* binding */ __N_SSP,
- /* harmony export */ default: () => __WEBPACK_DEFAULT_EXPORT__,
- /* harmony export */
- });
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(7765);
- /* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(2406);
- /* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_1___default =
- /*#__PURE__*/ __webpack_require__.n(
- next_dynamic__WEBPACK_IMPORTED_MODULE_1__
- );
-
- const DynamicHello = next_dynamic__WEBPACK_IMPORTED_MODULE_1___default()(
- () =>
- __webpack_require__
- .e(/* import() */ 5194)
- .then(__webpack_require__.bind(__webpack_require__, 5194))
- .then((mod) => mod.Hello),
- {
- loadableGenerated: {
- webpack: () => [/*require.resolve*/ 5194],
- },
- }
- );
- const Page = () =>
- /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(
- react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment,
- {
- children: [
- /*#__PURE__*/ (0,
- react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p", {
- children: "testing next/dynamic size",
- }),
- /*#__PURE__*/ (0,
- react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
- DynamicHello,
- {}
- ),
- ],
- }
- );
- var __N_SSP = true;
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = Page;
-
- /***/
- },
-
- /***/ 8452: /***/ (
+ /***/ 5792: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -371,24 +360,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
/***/
},
- /***/ 8931: /***/ (
- __unused_webpack_module,
- __unused_webpack_exports,
- __webpack_require__
- ) => {
- (window.__NEXT_P = window.__NEXT_P || []).push([
- "/dynamic",
- function () {
- return __webpack_require__(4545);
- },
- ]);
- if (false) {
- }
-
- /***/
- },
-
- /***/ 8949: /***/ (module, exports, __webpack_require__) => {
+ /***/ 6153: /***/ (module, exports, __webpack_require__) => {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -421,7 +393,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
__webpack_require__(5977)
);
const _loadablesharedruntime = /*#__PURE__*/ _interop_require_default._(
- __webpack_require__(4466)
+ __webpack_require__(4478)
);
const isServerSide = "object" === "undefined";
// Normalize loader to return the module as form { default: Component } for `React.lazy`.
@@ -429,7 +401,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
// Client component reference proxy need to be converted to a module.
function convertModule(mod) {
return {
- default: (mod == null ? void 0 : mod.default) || mod,
+ default: mod?.default || mod,
};
}
function noSSR(LoadableInitializer, loadableOptions) {
@@ -454,8 +426,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
let loadableFn = _loadablesharedruntime.default;
let loadableOptions = {
// A loading component is not required, so we default it
- loading: (param) => {
- let { error, isLoading, pastDelay } = param;
+ loading: ({ error, isLoading, pastDelay }) => {
if (!pastDelay) return null;
if (false) {
}
@@ -521,13 +492,40 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
/***/
},
+
+ /***/ 7444: /***/ (
+ module,
+ __unused_webpack_exports,
+ __webpack_require__
+ ) => {
+ module.exports = __webpack_require__(6153);
+
+ /***/
+ },
+
+ /***/ 9805: /***/ (
+ __unused_webpack_module,
+ __unused_webpack_exports,
+ __webpack_require__
+ ) => {
+ (window.__NEXT_P = window.__NEXT_P || []).push([
+ "/dynamic",
+ function () {
+ return __webpack_require__(2839);
+ },
+ ]);
+ if (false) {
+ }
+
+ /***/
+ },
},
/******/ (__webpack_require__) => {
// webpackRuntimeModules
/******/ var __webpack_exec__ = (moduleId) =>
__webpack_require__((__webpack_require__.s = moduleId));
/******/ __webpack_require__.O(0, [636, 6593, 8792], () =>
- __webpack_exec__(8931)
+ __webpack_exec__(9805)
);
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for edge-ssr-HASH.js
@@ -1,24 +1,7 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[676],
{
- /***/ 4717: /***/ (
- __unused_webpack_module,
- __unused_webpack_exports,
- __webpack_require__
- ) => {
- (window.__NEXT_P = window.__NEXT_P || []).push([
- "/edge-ssr",
- function () {
- return __webpack_require__(7776);
- },
- ]);
- if (false) {
- }
-
- /***/
- },
-
- /***/ 7776: /***/ (
+ /***/ 170: /***/ (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
@@ -37,13 +20,30 @@
/***/
},
+
+ /***/ 8079: /***/ (
+ __unused_webpack_module,
+ __unused_webpack_exports,
+ __webpack_require__
+ ) => {
+ (window.__NEXT_P = window.__NEXT_P || []).push([
+ "/edge-ssr",
+ function () {
+ return __webpack_require__(170);
+ },
+ ]);
+ if (false) {
+ }
+
+ /***/
+ },
},
/******/ (__webpack_require__) => {
// webpackRuntimeModules
/******/ var __webpack_exec__ = (moduleId) =>
__webpack_require__((__webpack_require__.s = moduleId));
/******/ __webpack_require__.O(0, [636, 6593, 8792], () =>
- __webpack_exec__(4717)
+ __webpack_exec__(8079)
);
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for head-HASH.js
@@ -1,34 +1,17 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[5350],
{
- /***/ 943: /***/ (
+ /***/ 1177: /***/ (
module,
__unused_webpack_exports,
__webpack_require__
) => {
- module.exports = __webpack_require__(2554);
+ module.exports = __webpack_require__(8366);
/***/
},
- /***/ 3829: /***/ (
- __unused_webpack_module,
- __unused_webpack_exports,
- __webpack_require__
- ) => {
- (window.__NEXT_P = window.__NEXT_P || []).push([
- "/head",
- function () {
- return __webpack_require__(4662);
- },
- ]);
- if (false) {
- }
-
- /***/
- },
-
- /***/ 4662: /***/ (
+ /***/ 1992: /***/ (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
@@ -43,7 +26,7 @@
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
__webpack_require__(7765);
/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(943);
+ __webpack_require__(1177);
/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_1___default =
/*#__PURE__*/ __webpack_require__.n(
next_head__WEBPACK_IMPORTED_MODULE_1__
@@ -76,13 +59,30 @@
/***/
},
+
+ /***/ 8751: /***/ (
+ __unused_webpack_module,
+ __unused_webpack_exports,
+ __webpack_require__
+ ) => {
+ (window.__NEXT_P = window.__NEXT_P || []).push([
+ "/head",
+ function () {
+ return __webpack_require__(1992);
+ },
+ ]);
+ if (false) {
+ }
+
+ /***/
+ },
},
/******/ (__webpack_require__) => {
// webpackRuntimeModules
/******/ var __webpack_exec__ = (moduleId) =>
__webpack_require__((__webpack_require__.s = moduleId));
/******/ __webpack_require__.O(0, [636, 6593, 8792], () =>
- __webpack_exec__(3829)
+ __webpack_exec__(8751)
);
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for hooks-HASH.js
@@ -1,7 +1,24 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[9804],
{
- /***/ 2452: /***/ (
+ /***/ 2227: /***/ (
+ __unused_webpack_module,
+ __unused_webpack_exports,
+ __webpack_require__
+ ) => {
+ (window.__NEXT_P = window.__NEXT_P || []).push([
+ "/hooks",
+ function () {
+ return __webpack_require__(2770);
+ },
+ ]);
+ if (false) {
+ }
+
+ /***/
+ },
+
+ /***/ 2770: /***/ (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
@@ -59,30 +76,13 @@
/***/
},
-
- /***/ 6105: /***/ (
- __unused_webpack_module,
- __unused_webpack_exports,
- __webpack_require__
- ) => {
- (window.__NEXT_P = window.__NEXT_P || []).push([
- "/hooks",
- function () {
- return __webpack_require__(2452);
- },
- ]);
- if (false) {
- }
-
- /***/
- },
},
/******/ (__webpack_require__) => {
// webpackRuntimeModules
/******/ var __webpack_exec__ = (moduleId) =>
__webpack_require__((__webpack_require__.s = moduleId));
/******/ __webpack_require__.O(0, [636, 6593, 8792], () =>
- __webpack_exec__(6105)
+ __webpack_exec__(2227)
);
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for image-HASH.js
Diff too large to display
Diff for link-HASH.js
@@ -1,143 +1,63 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[4672],
{
- /***/ 1585: /***/ (module, exports, __webpack_require__) => {
- "use strict";
-
- Object.defineProperty(exports, "__esModule", {
- value: true,
- });
- Object.defineProperty(exports, "useIntersection", {
- enumerable: true,
- get: function () {
- return useIntersection;
- },
- });
- const _react = __webpack_require__(5977);
- const _requestidlecallback = __webpack_require__(356);
- const hasIntersectionObserver =
- typeof IntersectionObserver === "function";
- const observers = new Map();
- const idList = [];
- function createObserver(options) {
- const id = {
- root: options.root || null,
- margin: options.rootMargin || "",
- };
- const existing = idList.find(
- (obj) => obj.root === id.root && obj.margin === id.margin
- );
- let instance;
- if (existing) {
- instance = observers.get(existing);
- if (instance) {
- return instance;
- }
- }
- const elements = new Map();
- const observer = new IntersectionObserver((entries) => {
- entries.forEach((entry) => {
- const callback = elements.get(entry.target);
- const isVisible =
- entry.isIntersecting || entry.intersectionRatio > 0;
- if (callback && isVisible) {
- callback(isVisible);
- }
- });
- }, options);
- instance = {
- id,
- observer,
- elements,
- };
- idList.push(id);
- observers.set(id, instance);
- return instance;
- }
- function observe(element, callback, options) {
- const { id, observer, elements } = createObserver(options);
- elements.set(element, callback);
- observer.observe(element);
- return function unobserve() {
- elements.delete(element);
- observer.unobserve(element);
- // Destroy observer when there's nothing left to watch:
- if (elements.size === 0) {
- observer.disconnect();
- observers.delete(id);
- const index = idList.findIndex(
- (obj) => obj.root === id.root && obj.margin === id.margin
- );
- if (index > -1) {
- idList.splice(index, 1);
- }
- }
- };
- }
- function useIntersection(param) {
- let { rootRef, rootMargin, disabled } = param;
- const isDisabled = disabled || !hasIntersectionObserver;
- const [visible, setVisible] = (0, _react.useState)(false);
- const elementRef = (0, _react.useRef)(null);
- const setElement = (0, _react.useCallback)((element) => {
- elementRef.current = element;
- }, []);
- (0, _react.useEffect)(() => {
- if (hasIntersectionObserver) {
- if (isDisabled || visible) return;
- const element = elementRef.current;
- if (element && element.tagName) {
- const unobserve = observe(
- element,
- (isVisible) => isVisible && setVisible(isVisible),
- {
- root: rootRef == null ? void 0 : rootRef.current,
- rootMargin,
- }
- );
- return unobserve;
- }
- } else {
- if (!visible) {
- const idleCallback = (0,
- _requestidlecallback.requestIdleCallback)(() => setVisible(true));
- return () =>
- (0, _requestidlecallback.cancelIdleCallback)(idleCallback);
- }
- }
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [isDisabled, rootMargin, rootRef, visible, elementRef.current]);
- const resetVisible = (0, _react.useCallback)(() => {
- setVisible(false);
- }, []);
- return [setElement, visible, resetVisible];
- }
- if (
- (typeof exports.default === "function" ||
- (typeof exports.default === "object" && exports.default !== null)) &&
- typeof exports.default.__esModule === "undefined"
- ) {
- Object.defineProperty(exports.default, "__esModule", {
- value: true,
- });
- Object.assign(exports.default, exports);
- module.exports = exports.default;
- } //# sourceMappingURL=use-intersection.js.map
+ /***/ 2783: /***/ (
+ module,
+ __unused_webpack_exports,
+ __webpack_require__
+ ) => {
+ module.exports = __webpack_require__(5926);
/***/
},
- /***/ 2621: /***/ (
- module,
- __unused_webpack_exports,
+ /***/ 4174: /***/ (
+ __unused_webpack_module,
+ __webpack_exports__,
__webpack_require__
) => {
- module.exports = __webpack_require__(5410);
+ "use strict";
+ __webpack_require__.r(__webpack_exports__);
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
+ /* harmony export */ __N_SSP: () => /* binding */ __N_SSP,
+ /* harmony export */ default: () => __WEBPACK_DEFAULT_EXPORT__,
+ /* harmony export */
+ });
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
+ __webpack_require__(7765);
+ /* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_1__ =
+ __webpack_require__(2783);
+ /* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_1___default =
+ /*#__PURE__*/ __webpack_require__.n(
+ next_link__WEBPACK_IMPORTED_MODULE_1__
+ );
+
+ function aLink(props) {
+ return /*#__PURE__*/ (0,
+ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
+ children: [
+ /*#__PURE__*/ (0,
+ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("h3", {
+ children: "A Link page!",
+ }),
+ /*#__PURE__*/ (0,
+ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
+ next_link__WEBPACK_IMPORTED_MODULE_1___default(),
+ {
+ href: "/",
+ children: "Go to /",
+ }
+ ),
+ ],
+ });
+ }
+ var __N_SSP = true;
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = aLink;
/***/
},
- /***/ 5410: /***/ (module, exports, __webpack_require__) => {
+ /***/ 5926: /***/ (module, exports, __webpack_require__) => {
"use strict";
/* __next_internal_client_entry_do_not_use__ cjs */
Object.defineProperty(exports, "__esModule", {
@@ -164,16 +84,16 @@
const _react = /*#__PURE__*/ _interop_require_wildcard._(
__webpack_require__(5977)
);
- const _resolvehref = __webpack_require__(224);
- const _islocalurl = __webpack_require__(7746);
- const _formaturl = __webpack_require__(315);
- const _utils = __webpack_require__(8709);
- const _addlocale = __webpack_require__(6358);
- const _routercontextsharedruntime = __webpack_require__(4095);
- const _useintersection = __webpack_require__(1585);
- const _getdomainlocale = __webpack_require__(8802);
- const _addbasepath = __webpack_require__(6151);
- const _usemergedref = __webpack_require__(9100);
+ const _resolvehref = __webpack_require__(6708);
+ const _islocalurl = __webpack_require__(6526);
+ const _formaturl = __webpack_require__(5575);
+ const _utils = __webpack_require__(3497);
+ const _addlocale = __webpack_require__(722);
+ const _routercontextsharedruntime = __webpack_require__(1235);
+ const _useintersection = __webpack_require__(8069);
+ const _getdomainlocale = __webpack_require__(9734);
+ const _addbasepath = __webpack_require__(4419);
+ const _usemergedref = __webpack_require__(6136);
const prefetched = new Set();
function prefetch(router, href, as, options) {
if (false) {
@@ -258,7 +178,7 @@
}
}
// If the router is an NextRouter instance it will have `beforePopState`
- const routerScroll = scroll != null ? scroll : true;
+ const routerScroll = scroll ?? true;
if ("beforePopState" in router) {
router[replace ? "replace" : "push"](href, as, {
shallow,
@@ -375,7 +295,7 @@
isVisible,
locale,
prefetchEnabled,
- router == null ? void 0 : router.locale,
+ router?.locale,
router,
]);
const anchorProps = {
@@ -438,29 +358,21 @@
anchorProps.href = as;
} else {
const curLocale =
- typeof locale !== "undefined"
- ? locale
- : router == null
- ? void 0
- : router.locale;
+ typeof locale !== "undefined" ? locale : router?.locale;
// we only render domain locales if we are currently on a domain locale
// so that locale links are still visitable in development/preview envs
const localeDomain =
- (router == null ? void 0 : router.isLocaleDomain) &&
+ router?.isLocaleDomain &&
(0, _getdomainlocale.getDomainLocale)(
as,
curLocale,
- router == null ? void 0 : router.locales,
- router == null ? void 0 : router.domainLocales
+ router?.locales,
+ router?.domainLocales
);
anchorProps.href =
localeDomain ||
(0, _addbasepath.addBasePath)(
- (0, _addlocale.addLocale)(
- as,
- curLocale,
- router == null ? void 0 : router.defaultLocale
- )
+ (0, _addlocale.addLocale)(as, curLocale, router?.defaultLocale)
);
}
return /*#__PURE__*/ (0, _jsxruntime.jsx)("a", {
@@ -495,43 +407,7 @@
/***/
},
- /***/ 8802: /***/ (module, exports, __webpack_require__) => {
- "use strict";
-
- Object.defineProperty(exports, "__esModule", {
- value: true,
- });
- Object.defineProperty(exports, "getDomainLocale", {
- enumerable: true,
- get: function () {
- return getDomainLocale;
- },
- });
- const _normalizetrailingslash = __webpack_require__(1652);
- const basePath =
- /* unused pure expression or super */ null && (false || "");
- function getDomainLocale(path, locale, locales, domainLocales) {
- if (false) {
- } else {
- return false;
- }
- }
- if (
- (typeof exports.default === "function" ||
- (typeof exports.default === "object" && exports.default !== null)) &&
- typeof exports.default.__esModule === "undefined"
- ) {
- Object.defineProperty(exports.default, "__esModule", {
- value: true,
- });
- Object.assign(exports.default, exports);
- module.exports = exports.default;
- } //# sourceMappingURL=get-domain-locale.js.map
-
- /***/
- },
-
- /***/ 9100: /***/ (module, exports, __webpack_require__) => {
+ /***/ 6136: /***/ (module, exports, __webpack_require__) => {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -609,7 +485,7 @@
/***/
},
- /***/ 9693: /***/ (
+ /***/ 7047: /***/ (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
@@ -617,7 +493,7 @@
(window.__NEXT_P = window.__NEXT_P || []).push([
"/link",
function () {
- return __webpack_require__(9948);
+ return __webpack_require__(4174);
},
]);
if (false) {
@@ -626,48 +502,163 @@
/***/
},
- /***/ 9948: /***/ (
- __unused_webpack_module,
- __webpack_exports__,
- __webpack_require__
- ) => {
+ /***/ 8069: /***/ (module, exports, __webpack_require__) => {
"use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
- /* harmony export */ __N_SSP: () => /* binding */ __N_SSP,
- /* harmony export */ default: () => __WEBPACK_DEFAULT_EXPORT__,
- /* harmony export */
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true,
});
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
- __webpack_require__(7765);
- /* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(2621);
- /* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_1___default =
- /*#__PURE__*/ __webpack_require__.n(
- next_link__WEBPACK_IMPORTED_MODULE_1__
+ Object.defineProperty(exports, "useIntersection", {
+ enumerable: true,
+ get: function () {
+ return useIntersection;
+ },
+ });
+ const _react = __webpack_require__(5977);
+ const _requestidlecallback = __webpack_require__(3432);
+ const hasIntersectionObserver =
+ typeof IntersectionObserver === "function";
+ const observers = new Map();
+ const idList = [];
+ function createObserver(options) {
+ const id = {
+ root: options.root || null,
+ margin: options.rootMargin || "",
+ };
+ const existing = idList.find(
+ (obj) => obj.root === id.root && obj.margin === id.margin
);
-
- function aLink(props) {
- return /*#__PURE__*/ (0,
- react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
- children: [
- /*#__PURE__*/ (0,
- react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("h3", {
- children: "A Link page!",
- }),
- /*#__PURE__*/ (0,
- react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(
- next_link__WEBPACK_IMPORTED_MODULE_1___default(),
- {
- href: "/",
- children: "Go to /",
- }
- ),
- ],
+ let instance;
+ if (existing) {
+ instance = observers.get(existing);
+ if (instance) {
+ return instance;
+ }
+ }
+ const elements = new Map();
+ const observer = new IntersectionObserver((entries) => {
+ entries.forEach((entry) => {
+ const callback = elements.get(entry.target);
+ const isVisible =
+ entry.isIntersecting || entry.intersectionRatio > 0;
+ if (callback && isVisible) {
+ callback(isVisible);
+ }
+ });
+ }, options);
+ instance = {
+ id,
+ observer,
+ elements,
+ };
+ idList.push(id);
+ observers.set(id, instance);
+ return instance;
+ }
+ function observe(element, callback, options) {
+ const { id, observer, elements } = createObserver(options);
+ elements.set(element, callback);
+ observer.observe(element);
+ return function unobserve() {
+ elements.delete(element);
+ observer.unobserve(element);
+ // Destroy observer when there's nothing left to watch:
+ if (elements.size === 0) {
+ observer.disconnect();
+ observers.delete(id);
+ const index = idList.findIndex(
+ (obj) => obj.root === id.root && obj.margin === id.margin
+ );
+ if (index > -1) {
+ idList.splice(index, 1);
+ }
+ }
+ };
+ }
+ function useIntersection({ rootRef, rootMargin, disabled }) {
+ const isDisabled = disabled || !hasIntersectionObserver;
+ const [visible, setVisible] = (0, _react.useState)(false);
+ const elementRef = (0, _react.useRef)(null);
+ const setElement = (0, _react.useCallback)((element) => {
+ elementRef.current = element;
+ }, []);
+ (0, _react.useEffect)(() => {
+ if (hasIntersectionObserver) {
+ if (isDisabled || visible) return;
+ const element = elementRef.current;
+ if (element && element.tagName) {
+ const unobserve = observe(
+ element,
+ (isVisible) => isVisible && setVisible(isVisible),
+ {
+ root: rootRef?.current,
+ rootMargin,
+ }
+ );
+ return unobserve;
+ }
+ } else {
+ if (!visible) {
+ const idleCallback = (0,
+ _requestidlecallback.requestIdleCallback)(() => setVisible(true));
+ return () =>
+ (0, _requestidlecallback.cancelIdleCallback)(idleCallback);
+ }
+ }
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [isDisabled, rootMargin, rootRef, visible, elementRef.current]);
+ const resetVisible = (0, _react.useCallback)(() => {
+ setVisible(false);
+ }, []);
+ return [setElement, visible, resetVisible];
+ }
+ if (
+ (typeof exports.default === "function" ||
+ (typeof exports.default === "object" && exports.default !== null)) &&
+ typeof exports.default.__esModule === "undefined"
+ ) {
+ Object.defineProperty(exports.default, "__esModule", {
+ value: true,
});
+ Object.assign(exports.default, exports);
+ module.exports = exports.default;
+ } //# sourceMappingURL=use-intersection.js.map
+
+ /***/
+ },
+
+ /***/ 9734: /***/ (module, exports, __webpack_require__) => {
+ "use strict";
+
+ Object.defineProperty(exports, "__esModule", {
+ value: true,
+ });
+ Object.defineProperty(exports, "getDomainLocale", {
+ enumerable: true,
+ get: function () {
+ return getDomainLocale;
+ },
+ });
+ const _normalizetrailingslash = __webpack_require__(504);
+ const basePath =
+ /* unused pure expression or super */ null && (false || "");
+ function getDomainLocale(path, locale, locales, domainLocales) {
+ if (false) {
+ } else {
+ return false;
+ }
}
- var __N_SSP = true;
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = aLink;
+ if (
+ (typeof exports.default === "function" ||
+ (typeof exports.default === "object" && exports.default !== null)) &&
+ typeof exports.default.__esModule === "undefined"
+ ) {
+ Object.defineProperty(exports.default, "__esModule", {
+ value: true,
+ });
+ Object.assign(exports.default, exports);
+ module.exports = exports.default;
+ } //# sourceMappingURL=get-domain-locale.js.map
/***/
},
@@ -677,7 +668,7 @@
/******/ var __webpack_exec__ = (moduleId) =>
__webpack_require__((__webpack_require__.s = moduleId));
/******/ __webpack_require__.O(0, [636, 6593, 8792], () =>
- __webpack_exec__(9693)
+ __webpack_exec__(7047)
);
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for script-HASH.js
@@ -1,7 +1,34 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
[1209],
{
- /***/ 3699: /***/ (
+ /***/ 1008: /***/ (
+ module,
+ __unused_webpack_exports,
+ __webpack_require__
+ ) => {
+ module.exports = __webpack_require__(2817);
+
+ /***/
+ },
+
+ /***/ 6951: /***/ (
+ __unused_webpack_module,
+ __unused_webpack_exports,
+ __webpack_require__
+ ) => {
+ (window.__NEXT_P = window.__NEXT_P || []).push([
+ "/script",
+ function () {
+ return __webpack_require__(8889);
+ },
+ ]);
+ if (false) {
+ }
+
+ /***/
+ },
+
+ /***/ 8889: /***/ (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
@@ -16,7 +43,7 @@
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
__webpack_require__(7765);
/* harmony import */ var next_script__WEBPACK_IMPORTED_MODULE_1__ =
- __webpack_require__(4802);
+ __webpack_require__(1008);
/* harmony import */ var next_script__WEBPACK_IMPORTED_MODULE_1___default =
/*#__PURE__*/ __webpack_require__.n(
next_script__WEBPACK_IMPORTED_MODULE_1__
@@ -36,7 +63,7 @@
next_script__WEBPACK_IMPORTED_MODULE_1___default(),
{
dangerouslySetInnerHTML: {
- __html: 'console.log("hello")',
+ __html: `console.log("hello")`,
},
}
),
@@ -48,40 +75,13 @@
/***/
},
-
- /***/ 4802: /***/ (
- module,
- __unused_webpack_exports,
- __webpack_require__
- ) => {
- module.exports = __webpack_require__(8661);
-
- /***/
- },
-
- /***/ 7861: /***/ (
- __unused_webpack_module,
- __unused_webpack_exports,
- __webpack_require__
- ) => {
- (window.__NEXT_P = window.__NEXT_P || []).push([
- "/script",
- function () {
- return __webpack_require__(3699);
- },
- ]);
- if (false) {
- }
-
- /***/
- },
},
/******/ (__webpack_require__) => {
// webpackRuntimeModules
/******/ var __webpack_exec__ = (moduleId) =>
__webpack_require__((__webpack_require__.s = moduleId));
/******/ __webpack_require__.O(0, [636, 6593, 8792], () =>
- __webpack_exec__(7861)
+ __webpack_exec__(6951)
);
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
Diff for 3414-HASH.js
deleted
Diff for 8863-HASH.js
@@ -1,8 +1,8 @@
"use strict";
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
- [8863],
+ [7009],
{
- /***/ 22: /***/ (module, exports, __webpack_require__) => {
+ /***/ 1912: /***/ (module, exports, __webpack_require__) => {
Object.defineProperty(exports, "__esModule", {
value: true,
});
@@ -12,7 +12,7 @@
return useMergedRef;
},
});
- const _react = __webpack_require__(2786);
+ const _react = __webpack_require__(2224);
function useMergedRef(refA, refB) {
const cleanupA = (0, _react.useRef)(null);
const cleanupB = (0, _react.useRef)(null);
@@ -78,7 +78,65 @@
/***/
},
- /***/ 639: /***/ (__unused_webpack_module, exports) => {
+ /***/ 2843: /***/ (
+ __unused_webpack_module,
+ exports,
+ __webpack_require__
+ ) => {
+ Object.defineProperty(exports, "__esModule", {
+ value: true,
+ });
+ Object.defineProperty(exports, "RouterContext", {
+ enumerable: true,
+ get: function () {
+ return RouterContext;
+ },
+ });
+ const _interop_require_default = __webpack_require__(2726);
+ const _react = /*#__PURE__*/ _interop_require_default._(
+ __webpack_require__(2224)
+ );
+ const RouterContext = _react.default.createContext(null);
+ if (false) {
+ } //# sourceMappingURL=router-context.shared-runtime.js.map
+
+ /***/
+ },
+
+ /***/ 3003: /***/ (
+ __unused_webpack_module,
+ exports,
+ __webpack_require__
+ ) => {
+ Object.defineProperty(exports, "__esModule", {
+ value: true,
+ });
+ Object.defineProperty(exports, "default", {
+ enumerable: true,
+ get: function () {
+ return _default;
+ },
+ });
+ const _findclosestquality = __webpack_require__(5045);
+ function defaultLoader({ config, src, width, quality }) {
+ if (false) {
+ }
+ const q = (0, _findclosestquality.findClosestQuality)(quality, config);
+ return `${config.path}?url=${encodeURIComponent(
+ src
+ )}&w=${width}&q=${q}${
+ src.startsWith("/_next/static/media/") && false ? 0 : ""
+ }`;
+ }
+ // We use this to determine if the import is the default loader
+ // or a custom loader defined by the user in next.config.js
+ defaultLoader.__next_img_default = true;
+ const _default = defaultLoader; //# sourceMappingURL=image-loader.js.map
+
+ /***/
+ },
+
+ /***/ 5045: /***/ (__unused_webpack_module, exports) => {
Object.defineProperty(exports, "__esModule", {
value: true,
});
@@ -89,15 +147,8 @@
},
});
function findClosestQuality(quality, config) {
- var _config_qualities;
const q = quality || 75;
- if (
- !(config == null
- ? void 0
- : (_config_qualities = config.qualities) == null
- ? void 0
- : _config_qualities.length)
- ) {
+ if (!config?.qualities?.length) {
return q;
}
return config.qualities.reduce(
@@ -109,56 +160,7 @@
/***/
},
- /***/ 936: /***/ (__unused_webpack_module, exports) => {
- Object.defineProperty(exports, "__esModule", {
- value: true,
- });
- 0 && 0;
- function _export(target, all) {
- for (var name in all)
- Object.defineProperty(target, name, {
- enumerable: true,
- get: all[name],
- });
- }
- _export(exports, {
- VALID_LOADERS: function () {
- return VALID_LOADERS;
- },
- imageConfigDefault: function () {
- return imageConfigDefault;
- },
- });
- const VALID_LOADERS = [
- "default",
- "imgix",
- "cloudinary",
- "akamai",
- "custom",
- ];
- const imageConfigDefault = {
- deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
- imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
- path: "/_next/image",
- loader: "default",
- loaderFile: "",
- domains: [],
- disableStaticImages: false,
- minimumCacheTTL: 14400,
- formats: ["image/webp"],
- dangerouslyAllowSVG: false,
- contentSecurityPolicy: "script-src 'none'; frame-src 'none'; sandbox;",
- contentDispositionType: "attachment",
- localPatterns: undefined,
- remotePatterns: [],
- qualities: [75],
- unoptimized: false,
- }; //# sourceMappingURL=image-config.js.map
-
- /***/
- },
-
- /***/ 1268: /***/ (__unused_webpack_module, exports) => {
+ /***/ 5218: /***/ (__unused_webpack_module, exports) => {
/**
* A shared function, used on both client and server, to generate a SVG blur placeholder.
*/
@@ -171,22 +173,19 @@
return getImageBlurSvg;
},
});
- function getImageBlurSvg(param) {
- let {
- widthInt,
- heightInt,
- blurWidth,
- blurHeight,
- blurDataURL,
- objectFit,
- } = param;
+ function getImageBlurSvg({
+ widthInt,
+ heightInt,
+ blurWidth,
+ blurHeight,
+ blurDataURL,
+ objectFit,
+ }) {
const std = 20;
const svgWidth = blurWidth ? blurWidth * 40 : widthInt;
const svgHeight = blurHeight ? blurHeight * 40 : heightInt;
const viewBox =
- svgWidth && svgHeight
- ? "viewBox='0 0 " + svgWidth + " " + svgHeight + "'"
- : "";
+ svgWidth && svgHeight ? `viewBox='0 0 ${svgWidth} ${svgHeight}'` : "";
const preserveAspectRatio = viewBox
? "none"
: objectFit === "contain"
@@ -194,25 +193,13 @@
: objectFit === "cover"
? "xMidYMid slice"
: "none";
- return (
- "%3Csvg xmlns='http://www.w3.org/2000/svg' " +
- viewBox +
- "%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='" +
- std +
- "'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='" +
- std +
- "'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='" +
- preserveAspectRatio +
- "' style='filter: url(%23b);' href='" +
- blurDataURL +
- "'/%3E%3C/svg%3E"
- );
+ return `%3Csvg xmlns='http://www.w3.org/2000/svg' ${viewBox}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='${std}'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='${std}'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${preserveAspectRatio}' style='filter: url(%23b);' href='${blurDataURL}'/%3E%3C/svg%3E`;
} //# sourceMappingURL=image-blur-svg.js.map
/***/
},
- /***/ 1796: /***/ (module, exports, __webpack_require__) => {
+ /***/ 5402: /***/ (module, exports, __webpack_require__) => {
/* __next_internal_client_entry_do_not_use__ cjs */
Object.defineProperty(exports, "__esModule", {
value: true,
@@ -233,17 +220,17 @@
return defaultHead;
},
});
- const _interop_require_default = __webpack_require__(8182);
- const _interop_require_wildcard = __webpack_require__(8319);
- const _jsxruntime = __webpack_require__(1050);
+ const _interop_require_default = __webpack_require__(2726);
+ const _interop_require_wildcard = __webpack_require__(2527);
+ const _jsxruntime = __webpack_require__(8204);
const _react = /*#__PURE__*/ _interop_require_wildcard._(
- __webpack_require__(2786)
+ __webpack_require__(2224)
);
const _sideeffect = /*#__PURE__*/ _interop_require_default._(
- __webpack_require__(5581)
+ __webpack_require__(9319)
);
- const _headmanagercontextsharedruntime = __webpack_require__(4950);
- const _warnonce = __webpack_require__(2854);
+ const _headmanagercontextsharedruntime = __webpack_require__(3100);
+ const _warnonce = __webpack_require__(4504);
function defaultHead() {
const head = [
/*#__PURE__*/ (0, _jsxruntime.jsx)(
@@ -371,8 +358,7 @@
/**
* This component injects elements to `<head>` of your page.
* To avoid duplicated `tags` in `<head>` you can use the `key` property, which will make sure every tag is only rendered once.
- */ function Head(param) {
- let { children } = param;
+ */ function Head({ children }) {
const headManager = (0, _react.useContext)(
_headmanagercontextsharedruntime.HeadManagerContext
);
@@ -398,7 +384,7 @@
/***/
},
- /***/ 2843: /***/ (
+ /***/ 6745: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -412,9 +398,9 @@
return getImgProps;
},
});
- const _warnonce = __webpack_require__(2854);
- const _imageblursvg = __webpack_require__(1268);
- const _imageconfig = __webpack_require__(936);
+ const _warnonce = __webpack_require__(4504);
+ const _imageblursvg = __webpack_require__(5218);
+ const _imageconfig = __webpack_require__(9278);
const VALID_LOADING_VALUES =
/* unused pure expression or super */ null && [
"lazy",
@@ -456,8 +442,7 @@
}
return NaN;
}
- function getWidths(param, width, sizes) {
- let { deviceSizes, allSizes } = param;
+ function getWidths({ deviceSizes, allSizes }, width, sizes) {
if (sizes) {
// Find all the "vw" percent sizes used in the sizes prop
const viewportWidthRe = /(^|\s)(1?\d?\d)vw/g;
@@ -504,8 +489,15 @@
kind: "x",
};
}
- function generateImgAttrs(param) {
- let { config, src, unoptimized, width, quality, sizes, loader } = param;
+ function generateImgAttrs({
+ config,
+ src,
+ unoptimized,
+ width,
+ quality,
+ sizes,
+ loader,
+ }) {
if (unoptimized) {
return {
src,
@@ -520,15 +512,12 @@
srcSet: widths
.map(
(w, i) =>
- loader({
+ `${loader({
config,
src,
quality,
width: w,
- }) +
- " " +
- (kind === "w" ? w : i + 1) +
- kind
+ })} ${kind === "w" ? w : i + 1}${kind}`
)
.join(", "),
// It's intended to keep `src` the last attribute because React updates
@@ -545,8 +534,8 @@
}),
};
}
- function getImgProps(param, _state) {
- let {
+ function getImgProps(
+ {
src,
sizes,
unoptimized = false,
@@ -572,22 +561,20 @@
lazyBoundary,
lazyRoot,
...rest
- } = param;
+ },
+ _state
+ ) {
const { imgConf, showAltText, blurComplete, defaultLoader } = _state;
let config;
let c = imgConf || _imageconfig.imageConfigDefault;
if ("allSizes" in c) {
config = c;
} else {
- var _c_qualities;
const allSizes = [...c.deviceSizes, ...c.imageSizes].sort(
(a, b) => a - b
);
const deviceSizes = c.deviceSizes.sort((a, b) => a - b);
- const qualities =
- (_c_qualities = c.qualities) == null
- ? void 0
- : _c_qualities.sort((a, b) => a - b);
+ const qualities = c.qualities?.sort((a, b) => a - b);
config = {
...c,
allSizes,
@@ -619,10 +606,8 @@
if (config.loader === "custom") {
throw Object.defineProperty(
new Error(
- 'Image with src "' +
- src +
- '" is missing "loader" prop.' +
- "\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader"
+ `Image with src "${src}" is missing "loader" prop.` +
+ `\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader`
),
"__NEXT_ERROR_CODE",
{
@@ -682,8 +667,9 @@
if (!staticImageData.src) {
throw Object.defineProperty(
new Error(
- "An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received " +
- JSON.stringify(staticImageData)
+ `An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(
+ staticImageData
+ )}`
),
"__NEXT_ERROR_CODE",
{
@@ -696,8 +682,9 @@
if (!staticImageData.height || !staticImageData.width) {
throw Object.defineProperty(
new Error(
- "An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received " +
- JSON.stringify(staticImageData)
+ `An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(
+ staticImageData
+ )}`
),
"__NEXT_ERROR_CODE",
{
@@ -748,7 +735,6 @@
}
const qualityInt = getInt(quality);
if (false) {
- var _config_localPatterns;
}
const imgStyle = Object.assign(
fill
@@ -774,17 +760,16 @@
const backgroundImage =
!blurComplete && placeholder !== "empty"
? placeholder === "blur"
- ? 'url("data:image/svg+xml;charset=utf-8,' +
- (0, _imageblursvg.getImageBlurSvg)({
+ ? `url("data:image/svg+xml;charset=utf-8,${(0,
+ _imageblursvg.getImageBlurSvg)({
widthInt,
heightInt,
blurWidth,
blurHeight,
blurDataURL: blurDataURL || "",
objectFit: imgStyle.objectFit,
- }) +
- '")'
- : 'url("' + placeholder + '")' // assume `data:image/`
+ })}")`
+ : `url("${placeholder}")` // assume `data:image/`
: null;
const backgroundSize = !INVALID_BACKGROUND_SIZE_VALUES.includes(
imgStyle.objectFit
@@ -846,190 +831,7 @@
/***/
},
- /***/ 5581: /***/ (
- __unused_webpack_module,
- exports,
- __webpack_require__
- ) => {
- Object.defineProperty(exports, "__esModule", {
- value: true,
- });
- Object.defineProperty(exports, "default", {
- enumerable: true,
- get: function () {
- return SideEffect;
- },
- });
- const _react = __webpack_require__(2786);
- const isServer = "object" === "undefined";
- const useClientOnlyLayoutEffect = isServer
- ? () => {}
- : _react.useLayoutEffect;
- const useClientOnlyEffect = isServer ? () => {} : _react.useEffect;
- function SideEffect(props) {
- const { headManager, reduceComponentsToState } = props;
- function emitChange() {
- if (headManager && headManager.mountedInstances) {
- const headElements = _react.Children.toArray(
- Array.from(headManager.mountedInstances).filter(Boolean)
- );
- headManager.updateHead(reduceComponentsToState(headElements));
- }
- }
- if (isServer) {
- var _headManager_mountedInstances;
- headManager == null
- ? void 0
- : (_headManager_mountedInstances = headManager.mountedInstances) ==
- null
- ? void 0
- : _headManager_mountedInstances.add(props.children);
- emitChange();
- }
- useClientOnlyLayoutEffect(() => {
- var _headManager_mountedInstances;
- headManager == null
- ? void 0
- : (_headManager_mountedInstances = headManager.mountedInstances) ==
- null
- ? void 0
- : _headManager_mountedInstances.add(props.children);
- return () => {
- var _headManager_mountedInstances;
- headManager == null
- ? void 0
- : (_headManager_mountedInstances =
- headManager.mountedInstances) == null
- ? void 0
- : _headManager_mountedInstances.delete(props.children);
- };
- });
- // We need to call `updateHead` method whenever the `SideEffect` is trigger in all
- // life-cycles: mount, update, unmount. However, if there are multiple `SideEffect`s
- // being rendered, we only trigger the method from the last one.
- // This is ensured by keeping the last unflushed `updateHead` in the `_pendingUpdate`
- // singleton in the layout effect pass, and actually trigger it in the effect pass.
- useClientOnlyLayoutEffect(() => {
- if (headManager) {
- headManager._pendingUpdate = emitChange;
- }
- return () => {
- if (headManager) {
- headManager._pendingUpdate = emitChange;
- }
- };
- });
- useClientOnlyEffect(() => {
- if (headManager && headManager._pendingUpdate) {
- headManager._pendingUpdate();
- headManager._pendingUpdate = null;
- }
- return () => {
- if (headManager && headManager._pendingUpdate) {
- headManager._pendingUpdate();
- headManager._pendingUpdate = null;
- }
- };
- });
- return null;
- } //# sourceMappingURL=side-effect.js.map
-
- /***/
- },
-
- /***/ 7053: /***/ (
- __unused_webpack_module,
- exports,
- __webpack_require__
- ) => {
- Object.defineProperty(exports, "__esModule", {
- value: true,
- });
- Object.defineProperty(exports, "RouterContext", {
- enumerable: true,
- get: function () {
- return RouterContext;
- },
- });
- const _interop_require_default = __webpack_require__(8182);
- const _react = /*#__PURE__*/ _interop_require_default._(
- __webpack_require__(2786)
- );
- const RouterContext = _react.default.createContext(null);
- if (false) {
- } //# sourceMappingURL=router-context.shared-runtime.js.map
-
- /***/
- },
-
- /***/ 7281: /***/ (
- __unused_webpack_module,
- exports,
- __webpack_require__
- ) => {
- Object.defineProperty(exports, "__esModule", {
- value: true,
- });
- Object.defineProperty(exports, "default", {
- enumerable: true,
- get: function () {
- return _default;
- },
- });
- const _findclosestquality = __webpack_require__(639);
- function defaultLoader(param) {
- let { config, src, width, quality } = param;
- if (false) {
- }
- const q = (0, _findclosestquality.findClosestQuality)(quality, config);
- return (
- config.path +
- "?url=" +
- encodeURIComponent(src) +
- "&w=" +
- width +
- "&q=" +
- q +
- (src.startsWith("/_next/static/media/") && false ? 0 : "")
- );
- }
- // We use this to determine if the import is the default loader
- // or a custom loader defined by the user in next.config.js
- defaultLoader.__next_img_default = true;
- const _default = defaultLoader; //# sourceMappingURL=image-loader.js.map
-
- /***/
- },
-
- /***/ 7480: /***/ (
- __unused_webpack_module,
- exports,
- __webpack_require__
- ) => {
- Object.defineProperty(exports, "__esModule", {
- value: true,
- });
- Object.defineProperty(exports, "ImageConfigContext", {
- enumerable: true,
- get: function () {
- return ImageConfigContext;
- },
- });
- const _interop_require_default = __webpack_require__(8182);
- const _react = /*#__PURE__*/ _interop_require_default._(
- __webpack_require__(2786)
- );
- const _imageconfig = __webpack_require__(936);
- const ImageConfigContext = _react.default.createContext(
- _imageconfig.imageConfigDefault
- );
- if (false) {
- } //# sourceMappingURL=image-config-context.shared-runtime.js.map
-
- /***/
- },
-
- /***/ 8863: /***/ (module, exports, __webpack_require__) => {
+ /***/ 7009: /***/ (module, exports, __webpack_require__) => {
/* __next_internal_client_entry_do_not_use__ cjs */
Object.defineProperty(exports, "__esModule", {
value: true,
@@ -1040,27 +842,27 @@
return Image;
},
});
- const _interop_require_default = __webpack_require__(8182);
- const _interop_require_wildcard = __webpack_require__(8319);
- const _jsxruntime = __webpack_require__(1050);
+ const _interop_require_default = __webpack_require__(2726);
+ const _interop_require_wildcard = __webpack_require__(2527);
+ const _jsxruntime = __webpack_require__(8204);
const _react = /*#__PURE__*/ _interop_require_wildcard._(
- __webpack_require__(2786)
+ __webpack_require__(2224)
);
const _reactdom = /*#__PURE__*/ _interop_require_default._(
- __webpack_require__(1407)
+ __webpack_require__(1345)
);
const _head = /*#__PURE__*/ _interop_require_default._(
- __webpack_require__(1796)
+ __webpack_require__(5402)
);
- const _getimgprops = __webpack_require__(2843);
- const _imageconfig = __webpack_require__(936);
- const _imageconfigcontextsharedruntime = __webpack_require__(7480);
- const _warnonce = __webpack_require__(2854);
- const _routercontextsharedruntime = __webpack_require__(7053);
+ const _getimgprops = __webpack_require__(6745);
+ const _imageconfig = __webpack_require__(9278);
+ const _imageconfigcontextsharedruntime = __webpack_require__(9690);
+ const _warnonce = __webpack_require__(4504);
+ const _routercontextsharedruntime = __webpack_require__(2843);
const _imageloader = /*#__PURE__*/ _interop_require_default._(
- __webpack_require__(7281)
+ __webpack_require__(3003)
);
- const _usemergedref = __webpack_require__(22);
+ const _usemergedref = __webpack_require__(1912);
// This is replaced by webpack define plugin
const configEnv = {
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
@@ -1084,7 +886,7 @@
unoptimized,
sizesInput
) {
- const src = img == null ? void 0 : img.src;
+ const src = img?.src;
if (!img || img["data-loaded-src"] === src) {
return;
}
@@ -1102,7 +904,7 @@
if (placeholder !== "empty") {
setBlurComplete(true);
}
- if (onLoadRef == null ? void 0 : onLoadRef.current) {
+ if (onLoadRef?.current) {
// Since we don't have the SyntheticEvent here,
// we must create one with the same shape.
// See https://reactjs.org/docs/events.html
@@ -1131,9 +933,7 @@
},
});
}
- if (
- onLoadingCompleteRef == null ? void 0 : onLoadingCompleteRef.current
- ) {
+ if (onLoadingCompleteRef?.current) {
onLoadingCompleteRef.current(img);
}
if (false) {
@@ -1156,8 +956,8 @@
};
}
const ImageElement = /*#__PURE__*/ (0, _react.forwardRef)(
- (param, forwardedRef) => {
- let {
+ (
+ {
src,
srcSet,
sizes,
@@ -1179,7 +979,9 @@
onLoad,
onError,
...rest
- } = param;
+ },
+ forwardedRef
+ ) => {
const ownRef = (0, _react.useCallback)(
(img) => {
if (!img) {
@@ -1267,8 +1069,7 @@
});
}
);
- function ImagePreload(param) {
- let { isAppRouter, imgAttributes } = param;
+ function ImagePreload({ isAppRouter, imgAttributes }) {
const opts = {
as: "image",
imageSrcSet: imgAttributes.srcSet,
@@ -1312,17 +1113,13 @@
_imageconfigcontextsharedruntime.ImageConfigContext
);
const config = (0, _react.useMemo)(() => {
- var _c_qualities;
const c =
configEnv || configContext || _imageconfig.imageConfigDefault;
const allSizes = [...c.deviceSizes, ...c.imageSizes].sort(
(a, b) => a - b
);
const deviceSizes = c.deviceSizes.sort((a, b) => a - b);
- const qualities =
- (_c_qualities = c.qualities) == null
- ? void 0
- : _c_qualities.sort((a, b) => a - b);
+ const qualities = c.qualities?.sort((a, b) => a - b);
return {
...c,
allSizes,
@@ -1386,5 +1183,155 @@
/***/
},
+
+ /***/ 9278: /***/ (__unused_webpack_module, exports) => {
+ Object.defineProperty(exports, "__esModule", {
+ value: true,
+ });
+ 0 && 0;
+ function _export(target, all) {
+ for (var name in all)
+ Object.defineProperty(target, name, {
+ enumerable: true,
+ get: all[name],
+ });
+ }
+ _export(exports, {
+ VALID_LOADERS: function () {
+ return VALID_LOADERS;
+ },
+ imageConfigDefault: function () {
+ return imageConfigDefault;
+ },
+ });
+ const VALID_LOADERS = [
+ "default",
+ "imgix",
+ "cloudinary",
+ "akamai",
+ "custom",
+ ];
+ const imageConfigDefault = {
+ deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
+ imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
+ path: "/_next/image",
+ loader: "default",
+ loaderFile: "",
+ domains: [],
+ disableStaticImages: false,
+ minimumCacheTTL: 14400,
+ formats: ["image/webp"],
+ dangerouslyAllowSVG: false,
+ contentSecurityPolicy: `script-src 'none'; frame-src 'none'; sandbox;`,
+ contentDispositionType: "attachment",
+ localPatterns: undefined,
+ remotePatterns: [],
+ qualities: [75],
+ unoptimized: false,
+ }; //# sourceMappingURL=image-config.js.map
+
+ /***/
+ },
+
+ /***/ 9319: /***/ (
+ __unused_webpack_module,
+ exports,
+ __webpack_require__
+ ) => {
+ Object.defineProperty(exports, "__esModule", {
+ value: true,
+ });
+ Object.defineProperty(exports, "default", {
+ enumerable: true,
+ get: function () {
+ return SideEffect;
+ },
+ });
+ const _react = __webpack_require__(2224);
+ const isServer = "object" === "undefined";
+ const useClientOnlyLayoutEffect = isServer
+ ? () => {}
+ : _react.useLayoutEffect;
+ const useClientOnlyEffect = isServer ? () => {} : _react.useEffect;
+ function SideEffect(props) {
+ const { headManager, reduceComponentsToState } = props;
+ function emitChange() {
+ if (headManager && headManager.mountedInstances) {
+ const headElements = _react.Children.toArray(
+ Array.from(headManager.mountedInstances).filter(Boolean)
+ );
+ headManager.updateHead(reduceComponentsToState(headElements));
+ }
+ }
+ if (isServer) {
+ headManager?.mountedInstances?.add(props.children);
+ emitChange();
+ }
+ useClientOnlyLayoutEffect(() => {
+ headManager?.mountedInstances?.add(props.children);
+ return () => {
+ headManager?.mountedInstances?.delete(props.children);
+ };
+ });
+ // We need to call `updateHead` method whenever the `SideEffect` is trigger in all
+ // life-cycles: mount, update, unmount. However, if there are multiple `SideEffect`s
+ // being rendered, we only trigger the method from the last one.
+ // This is ensured by keeping the last unflushed `updateHead` in the `_pendingUpdate`
+ // singleton in the layout effect pass, and actually trigger it in the effect pass.
+ useClientOnlyLayoutEffect(() => {
+ if (headManager) {
+ headManager._pendingUpdate = emitChange;
+ }
+ return () => {
+ if (headManager) {
+ headManager._pendingUpdate = emitChange;
+ }
+ };
+ });
+ useClientOnlyEffect(() => {
+ if (headManager && headManager._pendingUpdate) {
+ headManager._pendingUpdate();
+ headManager._pendingUpdate = null;
+ }
+ return () => {
+ if (headManager && headManager._pendingUpdate) {
+ headManager._pendingUpdate();
+ headManager._pendingUpdate = null;
+ }
+ };
+ });
+ return null;
+ } //# sourceMappingURL=side-effect.js.map
+
+ /***/
+ },
+
+ /***/ 9690: /***/ (
+ __unused_webpack_module,
+ exports,
+ __webpack_require__
+ ) => {
+ Object.defineProperty(exports, "__esModule", {
+ value: true,
+ });
+ Object.defineProperty(exports, "ImageConfigContext", {
+ enumerable: true,
+ get: function () {
+ return ImageConfigContext;
+ },
+ });
+ const _interop_require_default = __webpack_require__(2726);
+ const _react = /*#__PURE__*/ _interop_require_default._(
+ __webpack_require__(2224)
+ );
+ const _imageconfig = __webpack_require__(9278);
+ const ImageConfigContext = _react.default.createContext(
+ _imageconfig.imageConfigDefault
+ );
+ if (false) {
+ } //# sourceMappingURL=image-config-context.shared-runtime.js.map
+
+ /***/
+ },
},
]);
Diff for 9304-HASH.js
Diff too large to display
Diff for main-HASH.js
Diff too large to display
Diff for app-page-exp..ntime.dev.js
failed to diff
Diff for app-page-exp..time.prod.js
failed to diff
Diff for app-page-tur..ntime.dev.js
failed to diff
Diff for app-page-tur..time.prod.js
failed to diff
Diff for app-page-tur..ntime.dev.js
failed to diff
Diff for app-page-tur..time.prod.js
Diff too large to display
Diff for app-page.runtime.dev.js
failed to diff
Diff for app-page.runtime.prod.js
Diff too large to display
Diff for app-route-ex..ntime.dev.js
Diff too large to display
Diff for app-route-ex..time.prod.js
Diff too large to display
Diff for app-route-tu..ntime.dev.js
Diff too large to display
Diff for app-route-tu..time.prod.js
Diff too large to display
Diff for app-route-tu..ntime.dev.js
Diff too large to display
Diff for app-route-tu..time.prod.js
Diff too large to display
Diff for app-route.runtime.dev.js
Diff too large to display
Diff for app-route.ru..time.prod.js
Diff too large to display
Diff for pages-api-tu..ntime.dev.js
Diff too large to display
Diff for pages-api-tu..time.prod.js
Diff too large to display
Diff for pages-api.runtime.dev.js
Diff too large to display
Diff for pages-api.ru..time.prod.js
Diff too large to display
Diff for pages-turbo...ntime.dev.js
Diff too large to display
Diff for pages-turbo...time.prod.js
Diff too large to display
Diff for pages.runtime.dev.js
Diff too large to display
Diff for pages.runtime.prod.js
Diff too large to display
Diff for server.runtime.prod.js
Diff too large to display
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional Comments:
docs/03-architecture/supported-browsers.mdx (lines 7-12):
Documentation lists outdated browser versions (Chrome 64+, Edge 79+, Firefox 67+, Safari 12+) that no longer match the updated browser targets in the codebase (Chrome 111+, Edge 111+, Firefox 111+, Safari 16.4+).
View Details
📝 Patch Details
diff --git a/docs/03-architecture/supported-browsers.mdx b/docs/03-architecture/supported-browsers.mdx
index b29c06ae07..64a9a5c06b 100644
--- a/docs/03-architecture/supported-browsers.mdx
+++ b/docs/03-architecture/supported-browsers.mdx
@@ -5,11 +5,11 @@ description: Browser support and which JavaScript features are supported by Next
Next.js supports **modern browsers** with zero configuration.
-- Chrome 64+
-- Edge 79+
-- Firefox 67+
-- Opera 51+
-- Safari 12+
+- Chrome 111+
+- Edge 111+
+- Firefox 111+
+- Safari 16.4+
+- iOS Safari 16.4+
## Browserslist
@@ -18,11 +18,10 @@ If you would like to target specific browsers or features, Next.js supports [Bro
```json filename="package.json"
{
"browserslist": [
- "chrome 64",
- "edge 79",
- "firefox 67",
- "opera 51",
- "safari 12"
+ "chrome 111",
+ "edge 111",
+ "firefox 111",
+ "safari 16.4"
]
}
```
Analysis
Outdated browser version requirements in documentation
What fails: The docs/03-architecture/supported-browsers.mdx
file lists outdated minimum browser versions (Chrome 64+, Edge 79+, Firefox 67+, Safari 12+) that no longer match the actual compilation targets defined in packages/next/src/shared/lib/modern-browserslist-target.js
.
How to reproduce:
# Check the actual browser targets used in compilation
cat packages/next/src/shared/lib/modern-browserslist-target.js
# Verify what "baseline widely available" resolves to
npx browserslist@latest "baseline widely available"
Result: The actual browser targets are Chrome 111+, Edge 111+, Firefox 111+, Safari 16.4+, iOS Safari 16.4+ (based on "baseline widely available" browserslist query), but the documentation claims Chrome 64+, Edge 79+, Firefox 67+, Safari 12+.
Expected: Documentation should accurately reflect the minimum browser versions that Next.js actually compiles for, which are defined in MODERN_BROWSERSLIST_TARGET
and used by both webpack and SWC compilation processes (as seen in next-devtools.webpack-config.js
and taskfile-swc.js
).
Reference: The browser targets are defined using the Baseline "widely available" query, which includes features supported by major browsers for 30+ months.
02df029
to
5d7ee2c
Compare
baseline widely available
as default browserslist5d7ee2c
to
dbf1a76
Compare
dbf1a76
to
521069d
Compare
"opera 51", | ||
"safari 12" | ||
] | ||
"browserslist": ["chrome 111", "edge 111", "firefox 111", "safari 16.4"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also non blocking: what are the oldest browsers that we actually support. is there a minimium?
like would we support chrome 50?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks good. but i would feel more comfortable with a stamp from @timneutkens also
24a106f
to
9206d81
Compare
"opera 51", | ||
"safari 12" | ||
] | ||
"browserslist": ["chrome 111", "edge 111", "firefox 111", "safari 16.4"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one question to this config in general. Based on browserlist website this config covers only specified versions. Not the range or >= 111.
See:

Shouldn't this be something like:

As you state it's stable from certain browser version and "+".
Of course new coverage is still less than 50% but I'm not sure if you want to extend it further now (adding > 0.3% would cover it).
Initially I wanted to create PR with the same question as I found it on Tuesday. Today I can see this PR so I will hold with it, maybe we can find answer here together
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on browserlist website this config covers only specified versions
I guess in the stricted interpretation, that is true. But in reality, if you support chrome 111
, then you also support chrome >= 112
anyway, because newer versions never remove features.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea, I want to believe that as well. I don't know why it itches me when I see it 😬 Why is this a thing in that case?
Anyway, does it bother you to have >=
there? I can prepare PR if it's minor for you ✌️ 🙏
Use the current result of
baseline widely available
as the default browsers.If we used
baseline widely available
literally, then that would change the targets even within minor versions.Closes PACK-5610