Skip to content

Commit

Permalink
v12.0.5-canary.10
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Nov 25, 2021
1 parent f536376 commit b2acdbb
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
"registry": "https://registry.npmjs.org/"
}
},
"version": "12.0.5-canary.9"
"version": "12.0.5-canary.10"
}
2 changes: 1 addition & 1 deletion packages/create-next-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-next-app",
"version": "12.0.5-canary.9",
"version": "12.0.5-canary.10",
"keywords": [
"react",
"next",
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-next",
"version": "12.0.5-canary.9",
"version": "12.0.5-canary.10",
"description": "ESLint configuration used by NextJS.",
"main": "index.js",
"license": "MIT",
Expand All @@ -9,7 +9,7 @@
"directory": "packages/eslint-config-next"
},
"dependencies": {
"@next/eslint-plugin-next": "12.0.5-canary.9",
"@next/eslint-plugin-next": "12.0.5-canary.10",
"@rushstack/eslint-patch": "^1.0.8",
"@typescript-eslint/parser": "^5.0.0",
"eslint-import-resolver-node": "^0.3.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/eslint-plugin-next",
"version": "12.0.5-canary.9",
"version": "12.0.5-canary.10",
"description": "ESLint plugin for NextJS.",
"main": "lib/index.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-bundle-analyzer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/bundle-analyzer",
"version": "12.0.5-canary.9",
"version": "12.0.5-canary.10",
"main": "index.js",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/next-codemod/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/codemod",
"version": "12.0.5-canary.9",
"version": "12.0.5-canary.10",
"license": "MIT",
"dependencies": {
"chalk": "4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-env/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/env",
"version": "12.0.5-canary.9",
"version": "12.0.5-canary.10",
"keywords": [
"react",
"next",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-mdx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/mdx",
"version": "12.0.5-canary.9",
"version": "12.0.5-canary.10",
"main": "index.js",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/next-plugin-storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/plugin-storybook",
"version": "12.0.5-canary.9",
"version": "12.0.5-canary.10",
"repository": {
"url": "vercel/next.js",
"directory": "packages/next-plugin-storybook"
Expand Down
2 changes: 1 addition & 1 deletion packages/next-polyfill-module/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/polyfill-module",
"version": "12.0.5-canary.9",
"version": "12.0.5-canary.10",
"description": "A standard library polyfill for ES Modules supporting browsers (Edge 16+, Firefox 60+, Chrome 61+, Safari 10.1+)",
"main": "dist/polyfill-module.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-polyfill-nomodule/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/polyfill-nomodule",
"version": "12.0.5-canary.9",
"version": "12.0.5-canary.10",
"description": "A polyfill for non-dead, nomodule browsers.",
"main": "dist/polyfill-nomodule.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-swc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/swc",
"version": "12.0.5-canary.9",
"version": "12.0.5-canary.10",
"private": true,
"scripts": {
"build-native": "napi build --platform --cargo-name next_swc_napi native"
Expand Down
12 changes: 6 additions & 6 deletions packages/next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next",
"version": "12.0.5-canary.9",
"version": "12.0.5-canary.10",
"description": "The React Framework",
"main": "./dist/server/next.js",
"license": "MIT",
Expand Down Expand Up @@ -69,10 +69,10 @@
"@babel/runtime": "7.15.4",
"@hapi/accept": "5.0.2",
"@napi-rs/triples": "1.0.3",
"@next/env": "12.0.5-canary.9",
"@next/polyfill-module": "12.0.5-canary.9",
"@next/react-dev-overlay": "12.0.5-canary.9",
"@next/react-refresh-utils": "12.0.5-canary.9",
"@next/env": "12.0.5-canary.10",
"@next/polyfill-module": "12.0.5-canary.10",
"@next/react-dev-overlay": "12.0.5-canary.10",
"@next/react-refresh-utils": "12.0.5-canary.10",
"acorn": "8.5.0",
"assert": "2.0.0",
"browserify-zlib": "0.2.0",
Expand Down Expand Up @@ -155,7 +155,7 @@
"@babel/traverse": "7.15.0",
"@babel/types": "7.15.0",
"@napi-rs/cli": "1.2.1",
"@next/polyfill-nomodule": "12.0.5-canary.9",
"@next/polyfill-nomodule": "12.0.5-canary.10",
"@peculiar/webcrypto": "1.1.7",
"@taskr/clear": "1.1.0",
"@taskr/esnext": "1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-dev-overlay/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/react-dev-overlay",
"version": "12.0.5-canary.9",
"version": "12.0.5-canary.10",
"description": "A development-only overlay for developing React applications.",
"repository": {
"url": "vercel/next.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-refresh-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/react-refresh-utils",
"version": "12.0.5-canary.9",
"version": "12.0.5-canary.10",
"description": "An experimental package providing utilities for React Refresh.",
"repository": {
"url": "vercel/next.js",
Expand Down

1 comment on commit b2acdbb

@ijjk
Copy link
Member

@ijjk ijjk commented on b2acdbb Nov 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stats from current release

Default Build (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary v12.0.4 vercel/next.js refs/heads/canary Change
buildDuration 24.2s 24.7s ⚠️ +544ms
buildDurationCached 4.7s 4.4s -219ms
nodeModulesSize 345 MB 345 MB ⚠️ +12.3 kB
Page Load Tests Overall decrease ⚠️
vercel/next.js canary v12.0.4 vercel/next.js refs/heads/canary Change
/ failed reqs 0 0 βœ“
/ total time (seconds) 4.124 4.138 ⚠️ +0.01
/ avg req/sec 606.19 604.13 ⚠️ -2.06
/error-in-render failed reqs 0 0 βœ“
/error-in-render total time (seconds) 2.173 2.196 ⚠️ +0.02
/error-in-render avg req/sec 1150.56 1138.46 ⚠️ -12.1
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary v12.0.4 vercel/next.js refs/heads/canary Change
450.HASH.js gzip 179 B 179 B βœ“
framework-HASH.js gzip 42.2 kB 42.2 kB βœ“
main-HASH.js gzip 28.3 kB 28.4 kB ⚠️ +20 B
webpack-HASH.js gzip 1.45 kB 1.45 kB βœ“
Overall change 72.2 kB 72.2 kB ⚠️ +20 B
Legacy Client Bundles (polyfills)
vercel/next.js canary v12.0.4 vercel/next.js refs/heads/canary Change
polyfills-HASH.js gzip 31 kB 31 kB βœ“
Overall change 31 kB 31 kB βœ“
Client Pages Overall increase ⚠️
vercel/next.js canary v12.0.4 vercel/next.js refs/heads/canary Change
_app-HASH.js gzip 1.37 kB 1.37 kB βœ“
_error-HASH.js gzip 194 B 194 B βœ“
amp-HASH.js gzip 312 B 312 B βœ“
css-HASH.js gzip 327 B 327 B βœ“
dynamic-HASH.js gzip 2.38 kB 2.38 kB βœ“
head-HASH.js gzip 350 B 350 B βœ“
hooks-HASH.js gzip 635 B 635 B βœ“
image-HASH.js gzip 4.44 kB 4.45 kB ⚠️ +1 B
index-HASH.js gzip 263 B 263 B βœ“
link-HASH.js gzip 1.87 kB 1.87 kB βœ“
routerDirect..HASH.js gzip 321 B 321 B βœ“
script-HASH.js gzip 383 B 383 B βœ“
withRouter-HASH.js gzip 318 B 318 B βœ“
85e02e95b279..7e3.css gzip 107 B 107 B βœ“
Overall change 13.3 kB 13.3 kB ⚠️ +1 B
Client Build Manifests
vercel/next.js canary v12.0.4 vercel/next.js refs/heads/canary Change
_buildManifest.js gzip 460 B 460 B βœ“
Overall change 460 B 460 B βœ“
Rendered Page Sizes Overall increase ⚠️
vercel/next.js canary v12.0.4 vercel/next.js refs/heads/canary Change
index.html gzip 522 B 532 B ⚠️ +10 B
link.html gzip 534 B 545 B ⚠️ +11 B
withRouter.html gzip 516 B 526 B ⚠️ +10 B
Overall change 1.57 kB 1.6 kB ⚠️ +31 B

Diffs

Diff for _buildManifest.js
@@ -12,8 +12,8 @@ self.__BUILD_MANIFEST = {
   ],
   "/head": ["static\u002Fchunks\u002Fpages\u002Fhead-7100d3b2a548f0e4.js"],
   "/hooks": ["static\u002Fchunks\u002Fpages\u002Fhooks-ff60bc61acd2698b.js"],
-  "/image": ["static\u002Fchunks\u002Fpages\u002Fimage-2a8b03d7b35abada.js"],
-  "/link": ["static\u002Fchunks\u002Fpages\u002Flink-fa969765a079642e.js"],
+  "/image": ["static\u002Fchunks\u002Fpages\u002Fimage-91f7c5ff8695376c.js"],
+  "/link": ["static\u002Fchunks\u002Fpages\u002Flink-678af336607f5345.js"],
   "/routerDirect": [
     "static\u002Fchunks\u002Fpages\u002FrouterDirect-76232dd6bc335a24.js"
   ],
Diff for image-HASH.js
@@ -9,7 +9,7 @@
       (window.__NEXT_P = window.__NEXT_P || []).push([
         "/image",
         function() {
-          return __webpack_require__(3155);
+          return __webpack_require__(5924);
         }
       ]);
       if (false) {
@@ -969,7 +969,7 @@
       /***/
     },
 
-    /***/ 3155: /***/ function(
+    /***/ 5924: /***/ function(
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
Diff for link-HASH.js
@@ -184,7 +184,6 @@
           shallow = props.shallow,
           scroll = props.scroll,
           locale = props.locale;
-        // Deprecated. Warning shown by propType check. If the children provided is a string (<Link>example</Link>) we wrap it in an <a> tag
         if (typeof children === "string") {
           children = /*#__PURE__*/ _react.default.createElement(
             "a",
Diff for main-HASH.js
@@ -590,7 +590,7 @@
         document.getElementById("__NEXT_DATA__").textContent
       );
       window.__NEXT_DATA__ = data;
-      var version = "12.0.4";
+      var version = "12.0.5-canary.10";
       exports.version = version;
       var looseToArray = function(input) {
         return [].slice.call(input);
@@ -1541,17 +1541,15 @@
           this.routeLoader = (0, _routeLoader).createRouteLoader(assetPrefix);
           this.buildId = buildId;
           this.assetPrefix = assetPrefix;
-          /** @type {Promise<Set<string>>} */ this.promisedSsgManifest = new Promise(
-            function(resolve) {
-              if (window.__SSG_MANIFEST) {
+          this.promisedSsgManifest = new Promise(function(resolve) {
+            if (window.__SSG_MANIFEST) {
+              resolve(window.__SSG_MANIFEST);
+            } else {
+              window.__SSG_MANIFEST_CB = function() {
                 resolve(window.__SSG_MANIFEST);
-              } else {
-                window.__SSG_MANIFEST_CB = function() {
-                  resolve(window.__SSG_MANIFEST);
-                };
-              }
+              };
             }
-          );
+          });
         }
         _createClass(PageLoader, [
           {
@@ -1626,8 +1624,8 @@
              * @param {string} route - the route (file-system path)
              */ key: "_isSsg",
             value: function _isSsg(route) {
-              return this.promisedSsgManifest.then(function(s) {
-                return s.has(route);
+              return this.promisedSsgManifest.then(function(manifest) {
+                return manifest.has(route);
               });
             }
           },
@@ -2272,31 +2270,31 @@
             var _this = this;
             return withFuture(route, routes, function() {
               var _this1 = _this;
-              var routeFilesPromise = getFilesForRoute(assetPrefix, route)
-                .then(function(param) {
-                  var scripts = param.scripts,
-                    css = param.css;
-                  return Promise.all([
-                    entrypoints.has(route)
-                      ? []
-                      : Promise.all(scripts.map(maybeExecuteScript)),
-                    Promise.all(css.map(fetchStyleSheet))
-                  ]);
-                })
-                .then(function(res) {
-                  return _this1
-                    .whenEntrypoint(route)
-                    .then(function(entrypoint) {
-                      return {
-                        entrypoint: entrypoint,
-                        styles: res[1]
-                      };
-                    });
-                });
+              var devBuildPromiseResolve;
               if (false) {
               }
               return resolvePromiseWithTimeout(
-                routeFilesPromise,
+                getFilesForRoute(assetPrefix, route)
+                  .then(function(param) {
+                    var scripts = param.scripts,
+                      css = param.css;
+                    return Promise.all([
+                      entrypoints.has(route)
+                        ? []
+                        : Promise.all(scripts.map(maybeExecuteScript)),
+                      Promise.all(css.map(fetchStyleSheet))
+                    ]);
+                  })
+                  .then(function(res) {
+                    return _this1
+                      .whenEntrypoint(route)
+                      .then(function(entrypoint) {
+                        return {
+                          entrypoint: entrypoint,
+                          styles: res[1]
+                        };
+                      });
+                  }),
                 MS_MAX_IDLE_DELAY,
                 markAssetError(
                   new Error("Route did not complete loading: ".concat(route))
@@ -2321,6 +2319,12 @@
                   return {
                     error: err
                   };
+                })
+                .finally(function() {
+                  return devBuildPromiseResolve === null ||
+                    devBuildPromiseResolve === void 0
+                    ? void 0
+                    : devBuildPromiseResolve();
                 });
             });
           },
Diff for index.html
@@ -19,7 +19,7 @@
       defer=""
     ></script>
     <script
-      src="/_next/static/chunks/main-a6807d75d339316f.js"
+      src="/_next/static/chunks/main-1ca0ccbd7527884f.js"
       defer=""
     ></script>
     <script
@@ -38,7 +38,7 @@
     ></script>
   </head>
   <body>
-    <div id="__next">Hello world πŸ‘‹</div>
+    <div id="__next" data-reactroot="">Hello world πŸ‘‹</div>
     <script id="__NEXT_DATA__" type="application/json">
       {
         "props": { "pageProps": {}, "__N_SSP": true },
Diff for link.html
@@ -19,7 +19,7 @@
       defer=""
     ></script>
     <script
-      src="/_next/static/chunks/main-a6807d75d339316f.js"
+      src="/_next/static/chunks/main-1ca0ccbd7527884f.js"
       defer=""
     ></script>
     <script
@@ -27,7 +27,7 @@
       defer=""
     ></script>
     <script
-      src="/_next/static/chunks/pages/link-fa969765a079642e.js"
+      src="/_next/static/chunks/pages/link-678af336607f5345.js"
       defer=""
     ></script>
     <script src="/_next/static/BUILD_ID/_buildManifest.js" defer=""></script>
@@ -38,7 +38,7 @@
     ></script>
   </head>
   <body>
-    <div id="__next">
+    <div id="__next" data-reactroot="">
       <div>
         <h3>A Link page!</h3>
         <a href="/">Go to /</a>
Diff for withRouter.html
@@ -19,7 +19,7 @@
       defer=""
     ></script>
     <script
-      src="/_next/static/chunks/main-a6807d75d339316f.js"
+      src="/_next/static/chunks/main-1ca0ccbd7527884f.js"
       defer=""
     ></script>
     <script
@@ -38,7 +38,7 @@
     ></script>
   </head>
   <body>
-    <div id="__next"><div>I use withRouter</div></div>
+    <div id="__next" data-reactroot=""><div>I use withRouter</div></div>
     <script id="__NEXT_DATA__" type="application/json">
       {
         "props": { "pageProps": {}, "__N_SSP": true },

Default Build with SWC (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary v12.0.4 vercel/next.js refs/heads/canary Change
buildDuration 25.6s 26.8s ⚠️ +1.2s
buildDurationCached 4.7s 4.5s -221ms
nodeModulesSize 345 MB 345 MB ⚠️ +12.3 kB
Page Load Tests Overall decrease ⚠️
vercel/next.js canary v12.0.4 vercel/next.js refs/heads/canary Change
/ failed reqs 0 0 βœ“
/ total time (seconds) 4.165 4.415 ⚠️ +0.25
/ avg req/sec 600.31 566.26 ⚠️ -34.05
/error-in-render failed reqs 0 0 βœ“
/error-in-render total time (seconds) 2.172 2.193 ⚠️ +0.02
/error-in-render avg req/sec 1151.02 1140.03 ⚠️ -10.99
Client Bundles (main, webpack, commons) Overall increase ⚠️
vercel/next.js canary v12.0.4 vercel/next.js refs/heads/canary Change
450.HASH.js gzip 179 B 179 B βœ“
framework-HASH.js gzip 42.3 kB 42.3 kB βœ“
main-HASH.js gzip 28.6 kB 28.6 kB ⚠️ +20 B
webpack-HASH.js gzip 1.44 kB 1.44 kB βœ“
Overall change 72.5 kB 72.5 kB ⚠️ +20 B
Legacy Client Bundles (polyfills)
vercel/next.js canary v12.0.4 vercel/next.js refs/heads/canary Change
polyfills-HASH.js gzip 31 kB 31 kB βœ“
Overall change 31 kB 31 kB βœ“
Client Pages Overall increase ⚠️
vercel/next.js canary v12.0.4 vercel/next.js refs/heads/canary Change
_app-HASH.js gzip 1.35 kB 1.35 kB βœ“
_error-HASH.js gzip 180 B 180 B βœ“
amp-HASH.js gzip 305 B 305 B βœ“
css-HASH.js gzip 321 B 321 B βœ“
dynamic-HASH.js gzip 2.37 kB 2.37 kB βœ“
head-HASH.js gzip 342 B 342 B βœ“
hooks-HASH.js gzip 622 B 622 B βœ“
image-HASH.js gzip 4.46 kB 4.47 kB ⚠️ +1 B
index-HASH.js gzip 256 B 256 B βœ“
link-HASH.js gzip 1.91 kB 1.91 kB βœ“
routerDirect..HASH.js gzip 314 B 314 B βœ“
script-HASH.js gzip 375 B 375 B βœ“
withRouter-HASH.js gzip 309 B 309 B βœ“
85e02e95b279..7e3.css gzip 107 B 107 B βœ“
Overall change 13.2 kB 13.2 kB ⚠️ +1 B
Client Build Manifests Overall decrease βœ“
vercel/next.js canary v12.0.4 vercel/next.js refs/heads/canary Change
_buildManifest.js gzip 459 B 458 B -1 B
Overall change 459 B 458 B -1 B
Rendered Page Sizes Overall increase ⚠️
vercel/next.js canary v12.0.4 vercel/next.js refs/heads/canary Change
index.html gzip 523 B 531 B ⚠️ +8 B
link.html gzip 535 B 545 B ⚠️ +10 B
withRouter.html gzip 517 B 526 B ⚠️ +9 B
Overall change 1.57 kB 1.6 kB ⚠️ +27 B

Diffs

Diff for _buildManifest.js
@@ -12,8 +12,8 @@ self.__BUILD_MANIFEST = {
   ],
   "/head": ["static\u002Fchunks\u002Fpages\u002Fhead-7100d3b2a548f0e4.js"],
   "/hooks": ["static\u002Fchunks\u002Fpages\u002Fhooks-ff60bc61acd2698b.js"],
-  "/image": ["static\u002Fchunks\u002Fpages\u002Fimage-2a8b03d7b35abada.js"],
-  "/link": ["static\u002Fchunks\u002Fpages\u002Flink-fa969765a079642e.js"],
+  "/image": ["static\u002Fchunks\u002Fpages\u002Fimage-91f7c5ff8695376c.js"],
+  "/link": ["static\u002Fchunks\u002Fpages\u002Flink-678af336607f5345.js"],
   "/routerDirect": [
     "static\u002Fchunks\u002Fpages\u002FrouterDirect-76232dd6bc335a24.js"
   ],
Diff for image-HASH.js
@@ -9,7 +9,7 @@
       (window.__NEXT_P = window.__NEXT_P || []).push([
         "/image",
         function() {
-          return __webpack_require__(3155);
+          return __webpack_require__(5924);
         }
       ]);
       if (false) {
@@ -969,7 +969,7 @@
       /***/
     },
 
-    /***/ 3155: /***/ function(
+    /***/ 5924: /***/ function(
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
Diff for link-HASH.js
@@ -184,7 +184,6 @@
           shallow = props.shallow,
           scroll = props.scroll,
           locale = props.locale;
-        // Deprecated. Warning shown by propType check. If the children provided is a string (<Link>example</Link>) we wrap it in an <a> tag
         if (typeof children === "string") {
           children = /*#__PURE__*/ _react.default.createElement(
             "a",
Diff for main-HASH.js
@@ -590,7 +590,7 @@
         document.getElementById("__NEXT_DATA__").textContent
       );
       window.__NEXT_DATA__ = data;
-      var version = "12.0.4";
+      var version = "12.0.5-canary.10";
       exports.version = version;
       var looseToArray = function(input) {
         return [].slice.call(input);
@@ -1541,17 +1541,15 @@
           this.routeLoader = (0, _routeLoader).createRouteLoader(assetPrefix);
           this.buildId = buildId;
           this.assetPrefix = assetPrefix;
-          /** @type {Promise<Set<string>>} */ this.promisedSsgManifest = new Promise(
-            function(resolve) {
-              if (window.__SSG_MANIFEST) {
+          this.promisedSsgManifest = new Promise(function(resolve) {
+            if (window.__SSG_MANIFEST) {
+              resolve(window.__SSG_MANIFEST);
+            } else {
+              window.__SSG_MANIFEST_CB = function() {
                 resolve(window.__SSG_MANIFEST);
-              } else {
-                window.__SSG_MANIFEST_CB = function() {
-                  resolve(window.__SSG_MANIFEST);
-                };
-              }
+              };
             }
-          );
+          });
         }
         _createClass(PageLoader, [
           {
@@ -1626,8 +1624,8 @@
              * @param {string} route - the route (file-system path)
              */ key: "_isSsg",
             value: function _isSsg(route) {
-              return this.promisedSsgManifest.then(function(s) {
-                return s.has(route);
+              return this.promisedSsgManifest.then(function(manifest) {
+                return manifest.has(route);
               });
             }
           },
@@ -2272,31 +2270,31 @@
             var _this = this;
             return withFuture(route, routes, function() {
               var _this1 = _this;
-              var routeFilesPromise = getFilesForRoute(assetPrefix, route)
-                .then(function(param) {
-                  var scripts = param.scripts,
-                    css = param.css;
-                  return Promise.all([
-                    entrypoints.has(route)
-                      ? []
-                      : Promise.all(scripts.map(maybeExecuteScript)),
-                    Promise.all(css.map(fetchStyleSheet))
-                  ]);
-                })
-                .then(function(res) {
-                  return _this1
-                    .whenEntrypoint(route)
-                    .then(function(entrypoint) {
-                      return {
-                        entrypoint: entrypoint,
-                        styles: res[1]
-                      };
-                    });
-                });
+              var devBuildPromiseResolve;
               if (false) {
               }
               return resolvePromiseWithTimeout(
-                routeFilesPromise,
+                getFilesForRoute(assetPrefix, route)
+                  .then(function(param) {
+                    var scripts = param.scripts,
+                      css = param.css;
+                    return Promise.all([
+                      entrypoints.has(route)
+                        ? []
+                        : Promise.all(scripts.map(maybeExecuteScript)),
+                      Promise.all(css.map(fetchStyleSheet))
+                    ]);
+                  })
+                  .then(function(res) {
+                    return _this1
+                      .whenEntrypoint(route)
+                      .then(function(entrypoint) {
+                        return {
+                          entrypoint: entrypoint,
+                          styles: res[1]
+                        };
+                      });
+                  }),
                 MS_MAX_IDLE_DELAY,
                 markAssetError(
                   new Error("Route did not complete loading: ".concat(route))
@@ -2321,6 +2319,12 @@
                   return {
                     error: err
                   };
+                })
+                .finally(function() {
+                  return devBuildPromiseResolve === null ||
+                    devBuildPromiseResolve === void 0
+                    ? void 0
+                    : devBuildPromiseResolve();
                 });
             });
           },
Diff for index.html
@@ -19,7 +19,7 @@
       defer=""
     ></script>
     <script
-      src="/_next/static/chunks/main-a6807d75d339316f.js"
+      src="/_next/static/chunks/main-1ca0ccbd7527884f.js"
       defer=""
     ></script>
     <script
@@ -38,7 +38,7 @@
     ></script>
   </head>
   <body>
-    <div id="__next">Hello world πŸ‘‹</div>
+    <div id="__next" data-reactroot="">Hello world πŸ‘‹</div>
     <script id="__NEXT_DATA__" type="application/json">
       {
         "props": { "pageProps": {}, "__N_SSP": true },
Diff for link.html
@@ -19,7 +19,7 @@
       defer=""
     ></script>
     <script
-      src="/_next/static/chunks/main-a6807d75d339316f.js"
+      src="/_next/static/chunks/main-1ca0ccbd7527884f.js"
       defer=""
     ></script>
     <script
@@ -27,7 +27,7 @@
       defer=""
     ></script>
     <script
-      src="/_next/static/chunks/pages/link-fa969765a079642e.js"
+      src="/_next/static/chunks/pages/link-678af336607f5345.js"
       defer=""
     ></script>
     <script src="/_next/static/BUILD_ID/_buildManifest.js" defer=""></script>
@@ -38,7 +38,7 @@
     ></script>
   </head>
   <body>
-    <div id="__next">
+    <div id="__next" data-reactroot="">
       <div>
         <h3>A Link page!</h3>
         <a href="/">Go to /</a>
Diff for withRouter.html
@@ -19,7 +19,7 @@
       defer=""
     ></script>
     <script
-      src="/_next/static/chunks/main-a6807d75d339316f.js"
+      src="/_next/static/chunks/main-1ca0ccbd7527884f.js"
       defer=""
     ></script>
     <script
@@ -38,7 +38,7 @@
     ></script>
   </head>
   <body>
-    <div id="__next"><div>I use withRouter</div></div>
+    <div id="__next" data-reactroot=""><div>I use withRouter</div></div>
     <script id="__NEXT_DATA__" type="application/json">
       {
         "props": { "pageProps": {}, "__N_SSP": true },

Please sign in to comment.