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

Make type checking compatible with webpack 5 #15158

Merged
merged 8 commits into from
Jul 15, 2020

Conversation

timneutkens
Copy link
Member

@timneutkens timneutkens commented Jul 14, 2020

Ensures our typescript setup does not fail from missing types / conflicts between installed tapable, webpack and definitelytyped

@timneutkens timneutkens changed the title Run test suite against webpack 5 Make type checking compatible with webpack 5 Jul 15, 2020
@@ -296,6 +296,7 @@ class Invalidator {
// Work around a bug in webpack, calling `invalidate` on Watching.js
// doesn't trigger the invalid call used to keep track of the `.done` hook on multiCompiler
for (const compiler of this.multiCompiler.compilers) {
// @ts-ignore TODO: Check if this is still needed with webpack 5
Copy link
Member

Choose a reason for hiding this comment

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

Timer
Timer previously approved these changes Jul 15, 2020
@ijjk
Copy link
Member

ijjk commented Jul 15, 2020

Stats from current PR

Default Server Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js webpack5-tests Change
buildDuration 13.8s 14.5s ⚠️ +731ms
nodeModulesSize 66.5 MB 66.5 MB ⚠️ +51 B
Page Load Tests Overall decrease ⚠️
vercel/next.js canary timneutkens/next.js webpack5-tests Change
/ failed reqs 0 0
/ total time (seconds) 2.321 2.383 ⚠️ +0.06
/ avg req/sec 1077.19 1049.18 ⚠️ -28.01
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.482 1.517 ⚠️ +0.03
/error-in-render avg req/sec 1686.82 1647.76 ⚠️ -39.06
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js webpack5-tests 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 timneutkens/next.js webpack5-tests Change
main-HASH.module.js gzip 5.8 kB 5.8 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 timneutkens/next.js webpack5-tests 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 timneutkens/next.js webpack5-tests 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 timneutkens/next.js webpack5-tests Change
index.html gzip 954 B 954 B
link.html gzip 962 B 962 B
withRouter.html gzip 948 B 948 B
Overall change 2.86 kB 2.86 kB

Serverless Mode
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js webpack5-tests Change
buildDuration 15.1s 15.4s ⚠️ +263ms
nodeModulesSize 66.5 MB 66.5 MB ⚠️ +51 B
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js webpack5-tests 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 timneutkens/next.js webpack5-tests Change
main-HASH.module.js gzip 5.8 kB 5.8 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 timneutkens/next.js webpack5-tests 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 timneutkens/next.js webpack5-tests 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 timneutkens/next.js webpack5-tests Change
_error.js 882 kB 882 kB
404.html 4.17 kB 4.17 kB
hooks.html 3.79 kB 3.79 kB
index.js 882 kB 882 kB
link.js 924 kB 924 kB
routerDirect.js 918 kB 918 kB
withRouter.js 918 kB 918 kB
Overall change 4.53 MB 4.53 MB
Commit: 4b30173

@ijjk
Copy link
Member

ijjk commented Jul 15, 2020

Stats from current PR

Default Server Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js webpack5-tests Change
buildDuration 13.7s 13.4s -298ms
nodeModulesSize 66.5 MB 66.5 MB ⚠️ +51 B
Page Load Tests Overall decrease ⚠️
vercel/next.js canary timneutkens/next.js webpack5-tests Change
/ failed reqs 0 0
/ total time (seconds) 2.289 2.34 ⚠️ +0.05
/ avg req/sec 1092.27 1068.16 ⚠️ -24.11
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.557 1.585 ⚠️ +0.03
/error-in-render avg req/sec 1605.46 1577.41 ⚠️ -28.05
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js webpack5-tests 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 timneutkens/next.js webpack5-tests Change
main-HASH.module.js gzip 5.8 kB 5.8 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 timneutkens/next.js webpack5-tests 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 timneutkens/next.js webpack5-tests 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 timneutkens/next.js webpack5-tests Change
index.html gzip 954 B 954 B
link.html gzip 962 B 962 B
withRouter.html gzip 948 B 948 B
Overall change 2.86 kB 2.86 kB

Serverless Mode
General Overall increase ⚠️
vercel/next.js canary timneutkens/next.js webpack5-tests Change
buildDuration 14.2s 14.2s ⚠️ +14ms
nodeModulesSize 66.5 MB 66.5 MB ⚠️ +51 B
Client Bundles (main, webpack, commons)
vercel/next.js canary timneutkens/next.js webpack5-tests 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 timneutkens/next.js webpack5-tests Change
main-HASH.module.js gzip 5.8 kB 5.8 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 timneutkens/next.js webpack5-tests 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 timneutkens/next.js webpack5-tests 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 timneutkens/next.js webpack5-tests Change
_error.js 882 kB 882 kB
404.html 4.17 kB 4.17 kB
hooks.html 3.79 kB 3.79 kB
index.js 882 kB 882 kB
link.js 924 kB 924 kB
routerDirect.js 918 kB 918 kB
withRouter.js 918 kB 918 kB
Overall change 4.53 MB 4.53 MB
Commit: 0927194

@Timer Timer merged commit 14babe5 into vercel:canary Jul 15, 2020
@timneutkens timneutkens deleted the webpack5-tests branch February 12, 2021 13:33
@vercel vercel locked as resolved and limited conversation to collaborators Jan 29, 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.

4 participants