-
Notifications
You must be signed in to change notification settings - Fork 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
chore(@automattic/composite-checkout): Update webpack-dev-server #49183
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~69 bytes removed 📉 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
Moved to [draft] until I understand why the increase in bundle size |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine in general. Let me know if I can help!
414fdc0
to
9c80a9a
Compare
9c80a9a
to
f600247
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to need a rebase. Also, any finds as to where the bundle changes came from?
f600247
to
1399edd
Compare
Yes! And it is rather interesting:
I think the new situation is correct: webpack uses the latest Probably the solution (as hinted in browserify/node-util#57) is to have a explicit alias in webpack config, making sure /cc @jsnajdr |
Yes, we already have a similar alias for some But where does that Using Node packages in browser code is undesired and should be eliminated if possible. |
The one I found comes via |
@scinos and
|
1399edd
to
1f1993e
Compare
Update: A different PR was created and merged to fix the version of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There might be some candidates for deduping, but can be done in subsequent PRs. This looks good and works as expected 🚢
version "0.11.3" | ||
resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.11.3.tgz#5c0e9a8968e8912c286639fde977a8b209f2508e" | ||
integrity sha512-D2y4bovYpzziGgbHYtGCMjlJM36vAl/y+xUyn1C+FVx8szd1E+86KwVw6XvYSzOP8iMpm1X0I4xJD+QtUb36OA== | ||
dependencies: | ||
websocket-driver ">=0.5.1" | ||
|
||
faye-websocket@~0.10.0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this one use some deduping?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for checking :) In this case, ~0.10.0
and ^0.11.3
don't overlap.
I've found https://semver.npmjs.com/ really useful to verify what versions can satisfy a range.
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.1.tgz#b209ab14c61012636c8863507edf7fb68cc54e9f" | ||
integrity sha512-YR47Eg4hChJGAB1O3yEAOkGO+rlzutoICGqGo9EZ4lKWokzZRSyIW1QmTzqjtw8MJdj9srP869CuWw/hyzSiBw== | ||
|
||
fsevents@~2.1.2: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this could use some deduping?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same, ~2.1.2
and ~2.3.1
(or ^2.1.2
) don't overlap
Changes proposed in this Pull Request
Changelog
Testing instructions
composite-checkout-demo
. Verifyhttp://localhost:3000
loads without problems.