Repository navigation
hmr error improvements - #30616
Merged
Merged
hmr error improvements#30616
Conversation
sokra
commented
Oct 29, 2021
Member
- use HMR for HMR test (due to unnamed export default this always did a full refresh)
- show import trace on client-side too
- hide next.js internal loaders in parse errors
- show import trace in non-verbose errors too
use HMR for HMR test show import trace on client-side too hide next.js internal loaders in parse errors show import trace in non-verbose errors too
Member
Stats from current PRDefault BuildGeneral Overall increase
|
| vercel/next.js canary | vercel/next.js bugfix/errors | Change | |
|---|---|---|---|
| buildDuration | 37.6s | 37s | -585ms |
| buildDurationCached | 15.6s | 10.6s | -5s |
| nodeModulesSize | 95.2 MB | 95.2 MB | ✓ |
| nextStartRea..uration (ms) | 283ms | 285ms |
Client Bundles (main, webpack) Overall increase ⚠️
| vercel/next.js canary | vercel/next.js bugfix/errors | Change | |
|---|---|---|---|
| 152-HASH.js gzip | 64.5 kB | 64.5 kB | ✓ |
| 53.HASH.js gzip | 182 B | 182 B | ✓ |
| main-app-HASH.js gzip | 204 B | 205 B | |
| main-HASH.js gzip | 79.2 kB | 79.2 kB | ✓ |
| webpack-HASH.js gzip | 1.7 kB | 1.7 kB | ✓ |
| Overall change | 146 kB | 146 kB |
Legacy Client Bundles (polyfills)
| vercel/next.js canary | vercel/next.js bugfix/errors | Change | |
|---|---|---|---|
| polyfills-HASH.js gzip | 31 kB | 31 kB | ✓ |
| Overall change | 31 kB | 31 kB | ✓ |
Client Pages
| vercel/next.js canary | vercel/next.js bugfix/errors | Change | |
|---|---|---|---|
| _app-HASH.js gzip | 192 B | 192 B | ✓ |
| _error-HASH.js gzip | 179 B | 179 B | ✓ |
| amp-HASH.js gzip | 484 B | 484 B | ✓ |
| css-HASH.js gzip | 804 B | 804 B | ✓ |
| dynamic-HASH.js gzip | 2.27 kB | 2.27 kB | ✓ |
| edge-ssr-HASH.js gzip | 255 B | 255 B | ✓ |
| head-HASH.js gzip | 827 B | 827 B | ✓ |
| hooks-HASH.js gzip | 848 B | 848 B | ✓ |
| image-HASH.js gzip | 4.3 kB | 4.3 kB | ✓ |
| index-HASH.js gzip | 252 B | 252 B | ✓ |
| link-HASH.js gzip | 2.69 kB | 2.69 kB | ✓ |
| routerDirect..HASH.js gzip | 782 B | 782 B | ✓ |
| script-HASH.js gzip | 857 B | 857 B | ✓ |
| withRouter-HASH.js gzip | 781 B | 781 B | ✓ |
| 85e02e95b279..7e3.css gzip | 107 B | 107 B | ✓ |
| Overall change | 15.6 kB | 15.6 kB | ✓ |
Client Build Manifests
| vercel/next.js canary | vercel/next.js bugfix/errors | Change | |
|---|---|---|---|
| _buildManifest.js gzip | 482 B | 482 B | ✓ |
| Overall change | 482 B | 482 B | ✓ |
Rendered Page Sizes
| vercel/next.js canary | vercel/next.js bugfix/errors | Change | |
|---|---|---|---|
| index.html gzip | 490 B | 490 B | ✓ |
| link.html gzip | 506 B | 506 B | ✓ |
| withRouter.html gzip | 485 B | 485 B | ✓ |
| Overall change | 1.48 kB | 1.48 kB | ✓ |
Edge SSR bundle Size
| vercel/next.js canary | vercel/next.js bugfix/errors | Change | |
|---|---|---|---|
| edge-ssr.js gzip | 110 kB | 110 kB | ✓ |
| page.js gzip | 98.4 kB | 98.4 kB | ✓ |
| Overall change | 209 kB | 209 kB | ✓ |
Middleware size
| vercel/next.js canary | vercel/next.js bugfix/errors | Change | |
|---|---|---|---|
| middleware-b..fest.js gzip | 585 B | 585 B | ✓ |
| middleware-r..fest.js gzip | 145 B | 145 B | ✓ |
| middleware.js gzip | 27.1 kB | 27.1 kB | ✓ |
| edge-runtime..pack.js gzip | 1.83 kB | 1.83 kB | ✓ |
| Overall change | 29.7 kB | 29.7 kB | ✓ |
Member
Failing test suitesCommit: eeff5ee test/development/basic/hmr.test.ts
Expand output● basic HMR › Error Recovery › should recover after loader parse error in an imported file |
ijjk
force-pushed
the
canary
branch
3 times, most recently
from
October 25, 2022 16:15
df8579c to
47e5ebe
Compare
ijjk
force-pushed
the
canary
branch
2 times, most recently
from
December 2, 2022 05:49
e078ebe to
6b863fe
Compare
timneutkens
force-pushed
the
bugfix/errors
branch
from
December 13, 2022 11:11
eeff5ee to
c2ea561
Compare
timneutkens
force-pushed
the
bugfix/errors
branch
from
December 13, 2022 11:26
c2ea561 to
eeff5ee
Compare
hanneslund
marked this pull request as ready for review
January 4, 2023 16:04
hanneslund
requested review from
huozhi,
ijjk,
shuding and
timneutkens
as code owners
January 4, 2023 16:04
timneutkens
approved these changes
Jan 6, 2023
Contributor
|
Amazing work @sokra @hanneslund 👏 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.