-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Fix Web Workers with Fast Refresh #15145
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Stats from current PRDefault Server Mode (Decrease detected ✓)General Overall increase
|
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
buildDuration | 10.1s | 10.1s | |
nodeModulesSize | 66.5 MB | 66.5 MB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.745 | 1.72 | -0.03 |
/ avg req/sec | 1432.94 | 1453.37 | +20.43 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.005 | 1.124 | |
/error-in-render avg req/sec | 2487.61 | 2225.13 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
main-HASH.js gzip | 6.72 kB | 6.72 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..cead.js gzip | 9.77 kB | 9.77 kB | ✓ |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 56.4 kB | 56.4 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.79 kB | 5.79 kB | ✓ |
webpack-HASH..dule.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.17 kB | 6.17 kB | ✓ |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 51.9 kB | 51.9 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.4 kB | 26.4 kB | ✓ |
Overall change | 26.4 kB | 26.4 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 273 B | 273 B | ✓ |
Overall change | 540 B | 540 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
index.html gzip | 955 B | 955 B | ✓ |
link.html gzip | 962 B | 962 B | ✓ |
withRouter.html gzip | 947 B | 947 B | ✓ |
Overall change | 2.86 kB | 2.86 kB | ✓ |
Serverless Mode
General Overall increase ⚠️
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
buildDuration | 11.3s | 11.2s | -96ms |
nodeModulesSize | 66.5 MB | 66.5 MB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
main-HASH.js gzip | 6.72 kB | 6.72 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..cead.js gzip | 9.77 kB | 9.77 kB | ✓ |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 56.4 kB | 56.4 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.79 kB | 5.79 kB | ✓ |
webpack-HASH..dule.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.17 kB | 6.17 kB | ✓ |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 51.9 kB | 51.9 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.4 kB | 26.4 kB | ✓ |
Overall change | 26.4 kB | 26.4 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 273 B | 273 B | ✓ |
Overall change | 540 B | 540 B | ✓ |
Serverless bundles
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
_error.js | 881 kB | 881 kB | ✓ |
404.html | 4.17 kB | 4.17 kB | ✓ |
hooks.html | 3.79 kB | 3.79 kB | ✓ |
index.js | 881 kB | 881 kB | ✓ |
link.js | 923 kB | 923 kB | ✓ |
routerDirect.js | 917 kB | 917 kB | ✓ |
withRouter.js | 917 kB | 917 kB | ✓ |
Overall change | 4.53 MB | 4.53 MB | ✓ |
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
buildDuration | 12.6s | 12.6s | -32ms |
nodeModulesSize | 66.5 MB | 66.5 MB | ✓ |
Page Load Tests Overall increase ✓
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.059 | 2.001 | -0.06 |
/ avg req/sec | 1214.37 | 1249.33 | +34.96 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.228 | 1.221 | -0.01 |
/error-in-render avg req/sec | 2036.33 | 2046.77 | +10.44 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
main-HASH.js gzip | 6.72 kB | 6.72 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..cead.js gzip | 9.77 kB | 9.77 kB | ✓ |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 56.4 kB | 56.4 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.79 kB | 5.79 kB | ✓ |
webpack-HASH..dule.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.17 kB | 6.17 kB | ✓ |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 51.9 kB | 51.9 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.4 kB | 26.4 kB | ✓ |
Overall change | 26.4 kB | 26.4 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 273 B | 273 B | ✓ |
Overall change | 540 B | 540 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
index.html gzip | 955 B | 955 B | ✓ |
link.html gzip | 962 B | 962 B | ✓ |
withRouter.html gzip | 947 B | 947 B | ✓ |
Overall change | 2.86 kB | 2.86 kB | ✓ |
Serverless Mode
General
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
buildDuration | 13.9s | 14s | |
nodeModulesSize | 66.5 MB | 66.5 MB | ✓ |
Client Bundles (main, webpack, commons)
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
main-HASH.js gzip | 6.72 kB | 6.72 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..cead.js gzip | 9.77 kB | 9.77 kB | ✓ |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 56.4 kB | 56.4 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.79 kB | 5.79 kB | ✓ |
webpack-HASH..dule.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.17 kB | 6.17 kB | ✓ |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 51.9 kB | 51.9 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.4 kB | 26.4 kB | ✓ |
Overall change | 26.4 kB | 26.4 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 273 B | 273 B | ✓ |
Overall change | 540 B | 540 B | ✓ |
Serverless bundles
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
_error.js | 881 kB | 881 kB | ✓ |
404.html | 4.17 kB | 4.17 kB | ✓ |
hooks.html | 3.79 kB | 3.79 kB | ✓ |
index.js | 881 kB | 881 kB | ✓ |
link.js | 923 kB | 923 kB | ✓ |
routerDirect.js | 917 kB | 917 kB | ✓ |
withRouter.js | 917 kB | 917 kB | ✓ |
Overall change | 4.53 MB | 4.53 MB | ✓ |
Failing test suitesCommit: f59acc8 test/integration/legacy-sass/test/index.test.js
Expand output● Legacy Sass Support should work in development › should render the page
● Legacy Sass Support should work in development › should render the page
|
Failing test suitesCommit: 643d33d test/integration/legacy-sass/test/index.test.js
Expand output● Legacy Sass Support should work in development › should render the page
● Legacy Sass Support should work in development › should render the page
|
Stats from current PRDefault Server Mode (Decrease detected ✓)General
Page Load Tests Overall decrease
|
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.152 | 2.23 | |
/ avg req/sec | 1161.51 | 1121.02 | |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.464 | 1.471 | |
/error-in-render avg req/sec | 1707.68 | 1700.02 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
main-HASH.js gzip | 6.72 kB | 6.72 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..cead.js gzip | 9.77 kB | 9.77 kB | ✓ |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 56.4 kB | 56.4 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.79 kB | 5.79 kB | ✓ |
webpack-HASH..dule.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.17 kB | 6.17 kB | ✓ |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 51.9 kB | 51.9 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.4 kB | 26.4 kB | ✓ |
Overall change | 26.4 kB | 26.4 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 273 B | 273 B | ✓ |
Overall change | 540 B | 540 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
index.html gzip | 955 B | 955 B | ✓ |
link.html gzip | 962 B | 962 B | ✓ |
withRouter.html gzip | 947 B | 947 B | ✓ |
Overall change | 2.86 kB | 2.86 kB | ✓ |
Serverless Mode
General
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
buildDuration | 12.2s | 12.9s | |
nodeModulesSize | 66.5 MB | 66.5 MB | ✓ |
Client Bundles (main, webpack, commons)
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
main-HASH.js gzip | 6.72 kB | 6.72 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..cead.js gzip | 9.77 kB | 9.77 kB | ✓ |
framework.HASH.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 56.4 kB | 56.4 kB | ✓ |
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
main-HASH.module.js gzip | 5.79 kB | 5.79 kB | ✓ |
webpack-HASH..dule.js gzip | 751 B | 751 B | ✓ |
19b7e98f51cc..dule.js gzip | 6.17 kB | 6.17 kB | ✓ |
framework.HA..dule.js gzip | 39.1 kB | 39.1 kB | ✓ |
Overall change | 51.9 kB | 51.9 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 26.4 kB | 26.4 kB | ✓ |
Overall change | 26.4 kB | 26.4 kB | ✓ |
Client Build Manifests
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
_buildManifest.js gzip | 267 B | 267 B | ✓ |
_buildManife..dule.js gzip | 273 B | 273 B | ✓ |
Overall change | 540 B | 540 B | ✓ |
Serverless bundles
vercel/next.js canary | Timer/next.js hotfix/webworkers-fast-refresh | Change | |
---|---|---|---|
_error.js | 881 kB | 881 kB | ✓ |
404.html | 4.17 kB | 4.17 kB | ✓ |
hooks.html | 3.79 kB | 3.79 kB | ✓ |
index.js | 881 kB | 881 kB | ✓ |
link.js | 923 kB | 923 kB | ✓ |
routerDirect.js | 917 kB | 917 kB | ✓ |
withRouter.js | 917 kB | 917 kB | ✓ |
Overall change | 4.53 MB | 4.53 MB | ✓ |
When will this make it to stable release? |
This pull request fixes #12753 by setting the noop Fast Refresh helper functions in the web worker global scope.