SWC: Add error checks and tests to next-dynamic#31683
SWC: Add error checks and tests to next-dynamic#31683kodiakhq[bot] merged 4 commits intovercel:canaryfrom
Conversation
Failing test suitesCommit: 63bd6a5 test/development/basic-basepath/next-dynamic.test.ts
Expand output● basic next/dynamic usage › Dynamic import › default behavior › should hydrate nested chunks ● basic next/dynamic usage › Dynamic import › default behavior › should render the component Head content ● basic next/dynamic usage › Dynamic import › ssr:false option › should render the component on client side ● basic next/dynamic usage › Dynamic import › ssr:true option › Should render the component on the server side ● basic next/dynamic usage › Dynamic import › ssr:true option › should render the component on client side ● basic next/dynamic usage › Dynamic import › custom chunkfilename › should render the correct filename ● basic next/dynamic usage › Dynamic import › custom chunkfilename › should render the component on client side ● basic next/dynamic usage › Dynamic import › custom loading › should render custom loading on the server side when ● basic next/dynamic usage › Dynamic import › custom loading › should render the component on client side ● basic next/dynamic usage › Dynamic import › Multiple modules › should only include the rendered module script tag ● basic next/dynamic usage › Dynamic import › Multiple modules › should only load the rendered module in the browser ● basic next/dynamic usage › Dynamic import › Multiple modules › should only render one bundle if component is used multiple times |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
timneutkens
left a comment
There was a problem hiding this comment.
Very nice 💯 Could you send me a message on twitter.com/timneutkens / email at the address shown on https://timn.tech/
Stats from current PRDefault Build (Increase detected
|
| vercel/next.js canary | hanneslund/next.js next-dynamic-swc-errors | Change | |
|---|---|---|---|
| buildDuration | 18.6s | 18.5s | -111ms |
| buildDurationCached | 3.4s | 3.4s | -11ms |
| nodeModulesSize | 346 MB | 346 MB | -8 B |
Page Load Tests Overall increase ✓
| vercel/next.js canary | hanneslund/next.js next-dynamic-swc-errors | Change | |
|---|---|---|---|
| / failed reqs | 0 | 0 | ✓ |
| / total time (seconds) | 3.008 | 2.992 | -0.02 |
| / avg req/sec | 831.2 | 835.63 | +4.43 |
| /error-in-render failed reqs | 0 | 0 | ✓ |
| /error-in-render total time (seconds) | 1.468 | 1.422 | -0.05 |
| /error-in-render avg req/sec | 1703.19 | 1758.13 | +54.94 |
Client Bundles (main, webpack, commons)
| vercel/next.js canary | hanneslund/next.js next-dynamic-swc-errors | Change | |
|---|---|---|---|
| 450.HASH.js gzip | 179 B | 179 B | ✓ |
| framework-HASH.js gzip | 42.2 kB | 42.2 kB | ✓ |
| main-HASH.js gzip | 28.4 kB | 28.4 kB | ✓ |
| webpack-HASH.js gzip | 1.45 kB | 1.45 kB | ✓ |
| Overall change | 72.2 kB | 72.2 kB | ✓ |
Legacy Client Bundles (polyfills)
| vercel/next.js canary | hanneslund/next.js next-dynamic-swc-errors | Change | |
|---|---|---|---|
| polyfills-HASH.js gzip | 31 kB | 31 kB | ✓ |
| Overall change | 31 kB | 31 kB | ✓ |
Client Pages
| vercel/next.js canary | hanneslund/next.js next-dynamic-swc-errors | 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.45 kB | 4.45 kB | ✓ |
| 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 | ✓ |
Client Build Manifests
| vercel/next.js canary | hanneslund/next.js next-dynamic-swc-errors | Change | |
|---|---|---|---|
| _buildManifest.js gzip | 460 B | 460 B | ✓ |
| Overall change | 460 B | 460 B | ✓ |
Rendered Page Sizes
| vercel/next.js canary | hanneslund/next.js next-dynamic-swc-errors | Change | |
|---|---|---|---|
| index.html gzip | 532 B | 532 B | ✓ |
| link.html gzip | 545 B | 545 B | ✓ |
| withRouter.html gzip | 526 B | 526 B | ✓ |
| Overall change | 1.6 kB | 1.6 kB | ✓ |
Default Build with SWC (Increase detected ⚠️ )
General Overall decrease ✓
| vercel/next.js canary | hanneslund/next.js next-dynamic-swc-errors | Change | |
|---|---|---|---|
| buildDuration | 20s | 20.5s | |
| buildDurationCached | 3.4s | 3.4s | |
| nodeModulesSize | 346 MB | 346 MB | -8 B |
Page Load Tests Overall increase ✓
| vercel/next.js canary | hanneslund/next.js next-dynamic-swc-errors | Change | |
|---|---|---|---|
| / failed reqs | 0 | 0 | ✓ |
| / total time (seconds) | 2.954 | 2.978 | |
| / avg req/sec | 846.44 | 839.44 | |
| /error-in-render failed reqs | 0 | 0 | ✓ |
| /error-in-render total time (seconds) | 1.422 | 1.375 | -0.05 |
| /error-in-render avg req/sec | 1758.68 | 1817.59 | +58.91 |
Client Bundles (main, webpack, commons)
| vercel/next.js canary | hanneslund/next.js next-dynamic-swc-errors | 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 | ✓ |
| webpack-HASH.js gzip | 1.44 kB | 1.44 kB | ✓ |
| Overall change | 72.5 kB | 72.5 kB | ✓ |
Legacy Client Bundles (polyfills)
| vercel/next.js canary | hanneslund/next.js next-dynamic-swc-errors | Change | |
|---|---|---|---|
| polyfills-HASH.js gzip | 31 kB | 31 kB | ✓ |
| Overall change | 31 kB | 31 kB | ✓ |
Client Pages
| vercel/next.js canary | hanneslund/next.js next-dynamic-swc-errors | 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.47 kB | 4.47 kB | ✓ |
| 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 | ✓ |
Client Build Manifests
| vercel/next.js canary | hanneslund/next.js next-dynamic-swc-errors | Change | |
|---|---|---|---|
| _buildManifest.js gzip | 458 B | 458 B | ✓ |
| Overall change | 458 B | 458 B | ✓ |
Rendered Page Sizes
| vercel/next.js canary | hanneslund/next.js next-dynamic-swc-errors | Change | |
|---|---|---|---|
| index.html gzip | 532 B | 532 B | ✓ |
| link.html gzip | 544 B | 544 B | ✓ |
| withRouter.html gzip | 526 B | 526 B | ✓ |
| Overall change | 1.6 kB | 1.6 kB | ✓ |
fixes #31520
Bug
fixes #numbercontributing.mdFeature
fixes #numbercontributing.mdDocumentation / Examples
yarn lint