Skip to content
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

Use single webpack runtimeChunk for Node.js compilation #14722

Merged
merged 18 commits into from Jul 1, 2020

Conversation

timneutkens
Copy link
Member

Webpack 5 supports a single runtimechunk for the Node.js compilation, this solves sharing modules between entrypoints.

Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
@ijjk
Copy link
Member

ijjk commented Jun 30, 2020

Stats from current PR

Default Server Mode (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
buildDuration 13.1s 12.9s -198ms
nodeModulesSize 66 MB 66 MB ⚠️ +1.18 kB
Page Load Tests Overall increase ✓
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
/ failed reqs 0 0
/ total time (seconds) 2.142 2.102 -0.04
/ avg req/sec 1167.03 1189.49 +22.46
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.296 1.295 0
/error-in-render avg req/sec 1928.58 1929.77 +1.19
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.js gzip 6.59 kB 6.59 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..769f.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.2 kB 57.2 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.module.js gzip 5.68 kB 5.68 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.09 kB 7.09 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.7 kB 52.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
polyfills-HASH.js gzip 26.3 kB 26.3 kB
Overall change 26.3 kB 26.3 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Rendered Page Sizes
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
index.html gzip 951 B 951 B
link.html gzip 960 B 960 B
withRouter.html gzip 943 B 943 B
Overall change 2.85 kB 2.85 kB

Serverless Mode
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
buildDuration 13.6s 13.8s ⚠️ +150ms
nodeModulesSize 66 MB 66 MB ⚠️ +1.18 kB
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.js gzip 6.59 kB 6.59 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..769f.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.2 kB 57.2 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.module.js gzip 5.68 kB 5.68 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.09 kB 7.09 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.7 kB 52.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
polyfills-HASH.js gzip 26.3 kB 26.3 kB
Overall change 26.3 kB 26.3 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Serverless bundles
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_error.js 875 kB 875 kB
404.html 4.17 kB 4.17 kB
hooks.html 3.79 kB 3.79 kB
index.js 876 kB 876 kB
link.js 915 kB 915 kB
routerDirect.js 907 kB 907 kB
withRouter.js 907 kB 907 kB
Overall change 4.49 MB 4.49 MB
Commit: bddba13

@ijjk
Copy link
Member

ijjk commented Jul 1, 2020

Stats from current PR

Default Server Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
buildDuration 12.3s 12.4s ⚠️ +110ms
nodeModulesSize 66 MB 66 MB ⚠️ +16.1 kB
Page Load Tests Overall decrease ⚠️
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
/ failed reqs 0 0
/ total time (seconds) 2.083 2.059 -0.02
/ avg req/sec 1199.99 1213.93 +13.94
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.242 1.256 ⚠️ +0.01
/error-in-render avg req/sec 2012.85 1990.06 ⚠️ -22.79
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.js gzip 6.59 kB 6.59 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..769f.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.2 kB 57.2 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.module.js gzip 5.68 kB 5.68 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.09 kB 7.09 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.7 kB 52.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
polyfills-HASH.js gzip 26.3 kB 26.3 kB
Overall change 26.3 kB 26.3 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Rendered Page Sizes
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
index.html gzip 953 B 953 B
link.html gzip 962 B 962 B
withRouter.html gzip 946 B 946 B
Overall change 2.86 kB 2.86 kB

Serverless Mode
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
buildDuration 13.3s 13.2s -124ms
nodeModulesSize 66 MB 66 MB ⚠️ +16.1 kB
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.js gzip 6.59 kB 6.59 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..769f.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.2 kB 57.2 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.module.js gzip 5.68 kB 5.68 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.09 kB 7.09 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.7 kB 52.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
polyfills-HASH.js gzip 26.3 kB 26.3 kB
Overall change 26.3 kB 26.3 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Serverless bundles
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_error.js 875 kB 875 kB
404.html 4.17 kB 4.17 kB
hooks.html 3.79 kB 3.79 kB
index.js 876 kB 876 kB
link.js 915 kB 915 kB
routerDirect.js 907 kB 907 kB
withRouter.js 907 kB 907 kB
Overall change 4.49 MB 4.49 MB
Commit: e698903

@ijjk
Copy link
Member

ijjk commented Jul 1, 2020

Stats from current PR

Default Server Mode (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
buildDuration 13.5s 13.5s -45ms
nodeModulesSize 66 MB 66 MB ⚠️ +12 kB
Page Load Tests Overall increase ✓
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
/ failed reqs 0 0
/ total time (seconds) 2.358 2.321 -0.04
/ avg req/sec 1060.19 1077.04 +16.85
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.53 1.525 -0.01
/error-in-render avg req/sec 1633.9 1639.85 +5.95
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.js gzip 6.59 kB 6.59 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..769f.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.2 kB 57.2 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.module.js gzip 5.68 kB 5.68 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.09 kB 7.09 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.7 kB 52.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
polyfills-HASH.js gzip 26.3 kB 26.3 kB
Overall change 26.3 kB 26.3 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Rendered Page Sizes
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
index.html gzip 953 B 953 B
link.html gzip 962 B 962 B
withRouter.html gzip 946 B 946 B
Overall change 2.86 kB 2.86 kB

Serverless Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
buildDuration 14.3s 14.6s ⚠️ +302ms
nodeModulesSize 66 MB 66 MB ⚠️ +12 kB
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.js gzip 6.59 kB 6.59 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..769f.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.2 kB 57.2 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.module.js gzip 5.68 kB 5.68 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.09 kB 7.09 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.7 kB 52.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
polyfills-HASH.js gzip 26.3 kB 26.3 kB
Overall change 26.3 kB 26.3 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Serverless bundles Overall decrease ✓
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_error.js 875 kB 875 kB -2 B
404.html 4.17 kB 4.17 kB
hooks.html 3.79 kB 3.79 kB
index.js 876 kB 876 kB -2 B
link.js 915 kB 915 kB -2 B
routerDirect.js 907 kB 907 kB -2 B
withRouter.js 907 kB 907 kB -2 B
Overall change 4.49 MB 4.49 MB -10 B
Commit: c8e800b

@ijjk
Copy link
Member

ijjk commented Jul 1, 2020

Stats from current PR

Default Server Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
buildDuration 11.6s 11.7s ⚠️ +83ms
nodeModulesSize 66 MB 66 MB ⚠️ +10.7 kB
Page Load Tests Overall decrease ⚠️
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
/ failed reqs 0 0
/ total time (seconds) 1.995 1.985 -0.01
/ avg req/sec 1253.4 1259.39 +5.99
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.173 1.183 ⚠️ +0.01
/error-in-render avg req/sec 2130.55 2114.11 ⚠️ -16.44
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.js gzip 6.59 kB 6.59 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..769f.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.2 kB 57.2 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.module.js gzip 5.68 kB 5.68 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.09 kB 7.09 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.7 kB 52.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
polyfills-HASH.js gzip 26.3 kB 26.3 kB
Overall change 26.3 kB 26.3 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Rendered Page Sizes
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
index.html gzip 953 B 953 B
link.html gzip 962 B 962 B
withRouter.html gzip 946 B 946 B
Overall change 2.86 kB 2.86 kB

Serverless Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
buildDuration 12.8s 12.8s ⚠️ +7ms
nodeModulesSize 66 MB 66 MB ⚠️ +10.7 kB
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.js gzip 6.59 kB 6.59 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..769f.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.2 kB 57.2 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.module.js gzip 5.68 kB 5.68 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.09 kB 7.09 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.7 kB 52.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
polyfills-HASH.js gzip 26.3 kB 26.3 kB
Overall change 26.3 kB 26.3 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Serverless bundles Overall decrease ✓
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_error.js 875 kB 875 kB -2 B
404.html 4.17 kB 4.17 kB
hooks.html 3.79 kB 3.79 kB
index.js 876 kB 876 kB -2 B
link.js 915 kB 915 kB -2 B
routerDirect.js 907 kB 907 kB -2 B
withRouter.js 907 kB 907 kB -2 B
Overall change 4.49 MB 4.49 MB -10 B
Commit: 89a91b1

@ijjk
Copy link
Member

ijjk commented Jul 1, 2020

Stats from current PR

Default Server Mode (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
buildDuration 12.5s 12.4s -83ms
nodeModulesSize 66 MB 66 MB ⚠️ +10.8 kB
Page Load Tests Overall increase ✓
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
/ failed reqs 0 0
/ total time (seconds) 2.09 1.984 -0.11
/ avg req/sec 1196.43 1259.8 +63.37
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.226 1.257 ⚠️ +0.03
/error-in-render avg req/sec 2039.02 1988.6 ⚠️ -50.42
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.js gzip 6.59 kB 6.59 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..769f.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.2 kB 57.2 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.module.js gzip 5.68 kB 5.68 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.09 kB 7.09 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.7 kB 52.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
polyfills-HASH.js gzip 26.3 kB 26.3 kB
Overall change 26.3 kB 26.3 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Rendered Page Sizes
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
index.html gzip 953 B 953 B
link.html gzip 962 B 962 B
withRouter.html gzip 946 B 946 B
Overall change 2.86 kB 2.86 kB

Serverless Mode
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
buildDuration 13.5s 13.4s -40ms
nodeModulesSize 66 MB 66 MB ⚠️ +10.8 kB
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.js gzip 6.59 kB 6.59 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..769f.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.2 kB 57.2 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.module.js gzip 5.68 kB 5.68 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.09 kB 7.09 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.7 kB 52.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
polyfills-HASH.js gzip 26.3 kB 26.3 kB
Overall change 26.3 kB 26.3 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Serverless bundles
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_error.js 875 kB 875 kB
404.html 4.17 kB 4.17 kB
hooks.html 3.79 kB 3.79 kB
index.js 876 kB 876 kB
link.js 915 kB 915 kB
routerDirect.js 907 kB 907 kB
withRouter.js 907 kB 907 kB
Overall change 4.49 MB 4.49 MB
Commit: bc7e05b

@ijjk
Copy link
Member

ijjk commented Jul 1, 2020

Stats from current PR

Default Server Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
buildDuration 14.1s 14.2s ⚠️ +149ms
nodeModulesSize 66 MB 66 MB ⚠️ +10.7 kB
Page Load Tests Overall decrease ⚠️
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
/ failed reqs 0 0
/ total time (seconds) 2.432 2.484 ⚠️ +0.05
/ avg req/sec 1027.82 1006.34 ⚠️ -21.48
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.583 1.716 ⚠️ +0.13
/error-in-render avg req/sec 1579.45 1456.89 ⚠️ -122.56
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.js gzip 6.59 kB 6.59 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..769f.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.2 kB 57.2 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.module.js gzip 5.68 kB 5.68 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.09 kB 7.09 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.7 kB 52.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
polyfills-HASH.js gzip 26.3 kB 26.3 kB
Overall change 26.3 kB 26.3 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Rendered Page Sizes
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
index.html gzip 953 B 953 B
link.html gzip 962 B 962 B
withRouter.html gzip 946 B 946 B
Overall change 2.86 kB 2.86 kB

Serverless Mode
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
buildDuration 17.5s 18.5s ⚠️ +991ms
nodeModulesSize 66 MB 66 MB ⚠️ +10.7 kB
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.js gzip 6.59 kB 6.59 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..769f.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.2 kB 57.2 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.module.js gzip 5.68 kB 5.68 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.09 kB 7.09 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.7 kB 52.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
polyfills-HASH.js gzip 26.3 kB 26.3 kB
Overall change 26.3 kB 26.3 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Serverless bundles
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_error.js 875 kB 875 kB
404.html 4.17 kB 4.17 kB
hooks.html 3.79 kB 3.79 kB
index.js 876 kB 876 kB
link.js 915 kB 915 kB
routerDirect.js 907 kB 907 kB
withRouter.js 907 kB 907 kB
Overall change 4.49 MB 4.49 MB
Commit: 6067102

@ijjk
Copy link
Member

ijjk commented Jul 1, 2020

Stats from current PR

Default Server Mode (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
buildDuration 12.1s 12.5s ⚠️ +378ms
nodeModulesSize 66 MB 66 MB ⚠️ +10.7 kB
Page Load Tests Overall increase ✓
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
/ failed reqs 0 0
/ total time (seconds) 2.032 2.047 ⚠️ +0.02
/ avg req/sec 1230.58 1221.45 ⚠️ -9.13
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.229 1.217 -0.01
/error-in-render avg req/sec 2033.53 2054.01 +20.48
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.js gzip 6.59 kB 6.59 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..769f.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.2 kB 57.2 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.module.js gzip 5.68 kB 5.68 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.09 kB 7.09 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.7 kB 52.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
polyfills-HASH.js gzip 26.3 kB 26.3 kB
Overall change 26.3 kB 26.3 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Rendered Page Sizes
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
index.html gzip 953 B 953 B
link.html gzip 962 B 962 B
withRouter.html gzip 946 B 946 B
Overall change 2.86 kB 2.86 kB

Serverless Mode
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
buildDuration 13.2s 13.4s ⚠️ +184ms
nodeModulesSize 66 MB 66 MB ⚠️ +10.7 kB
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.js gzip 6.59 kB 6.59 kB
webpack-HASH.js gzip 751 B 751 B
19b7e98f51cc..769f.js gzip 10.7 kB 10.7 kB
framework.HASH.js gzip 39.1 kB 39.1 kB
Overall change 57.2 kB 57.2 kB
Client Bundles (main, webpack, commons) Modern
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
main-HASH.module.js gzip 5.68 kB 5.68 kB
webpack-HASH..dule.js gzip 751 B 751 B
19b7e98f51cc..dule.js gzip 7.09 kB 7.09 kB
framework.HA..dule.js gzip 39.1 kB 39.1 kB
Overall change 52.7 kB 52.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
polyfills-HASH.js gzip 26.3 kB 26.3 kB
Overall change 26.3 kB 26.3 kB
Client Build Manifests
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_buildManifest.js gzip 268 B 268 B
_buildManife..dule.js gzip 272 B 272 B
Overall change 540 B 540 B
Serverless bundles
vercel/next.js canary timneutkens/next.js add/webpack-5-single-runtimechunk Change
_error.js 876 kB 876 kB
404.html 4.17 kB 4.17 kB
hooks.html 3.79 kB 3.79 kB
index.js 876 kB 876 kB
link.js 915 kB 915 kB
routerDirect.js 908 kB 908 kB
withRouter.js 908 kB 908 kB
Overall change 4.49 MB 4.49 MB
Commit: 4aaba03

@kodiakhq kodiakhq bot merged commit c5cc607 into vercel:canary Jul 1, 2020
@timneutkens timneutkens deleted the add/webpack-5-single-runtimechunk branch July 1, 2020 16:06
@@ -660,7 +660,9 @@ export default async function getBaseWebpackConfig(
nodeEnv: false,
splitChunks: isServer ? false : splitChunksConfig,
runtimeChunk: isServer
? undefined
? isWebpack5 && !isLikeServerless
Copy link
Contributor

Choose a reason for hiding this comment

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

pretty sure this might have been what was biting me when trying to connect remote containers for SSR

rokinsky pushed a commit to rokinsky/next.js that referenced this pull request Jul 11, 2020
Webpack 5 supports a single runtimechunk for the Node.js compilation, this solves sharing modules between entrypoints.
@vercel vercel locked as resolved and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants