Skip to content

Conversation

@smaye81
Copy link
Member

@smaye81 smaye81 commented Aug 1, 2025

SSIA

@smaye81 smaye81 force-pushed the sayers/deps_aug_25 branch 2 times, most recently from 897772e to f1459fc Compare August 1, 2025 15:13
@smaye81 smaye81 marked this pull request as ready for review August 1, 2025 15:17
|------|-----:|----------|
| esbuild (js) | 123,964 bytes | dist/js/index.js |
| esbuild (ts) | 123,964 bytes | dist/ts/index.js |
| esbuild (js) | 135,295 bytes | dist/js/index.js |
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm, i wonder what caused an additional 10k+ increase to bundle size 🤔

Copy link
Member Author

@smaye81 smaye81 Aug 1, 2025

Choose a reason for hiding this comment

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

Yeah, and even weirder Parcel didn't change. I'm wondering if it's something in our configuration for these bundlers? @timostamm any ideas what may be the culprit here?

Copy link
Member

Choose a reason for hiding this comment

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

Protobuf-ES 2.6.1 includes an update to google-protobuf v31.1 with a small bump in bundle size (see PR), but that should be much smaller than 10kb.

Would be good to know what's going on here. Can you diff the bundled output against the previous one?

Copy link
Member

Choose a reason for hiding this comment

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

Just updated the connect bundle size benchmark, bump was small, as expected: connectrpc/connect-es#1533

Copy link
Member Author

Choose a reason for hiding this comment

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

After some investigation, the bump in size is predominantly related to two PRs:

We have mitigated the effect of 1170 with PR bufbuild/protobuf-es#1197, which, once released, will be pulled in with next month's dependabot updates.

Copy link
Collaborator

@paul-sachs paul-sachs left a comment

Choose a reason for hiding this comment

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

No blockers, just curious about the root cause of the bundle size increase

Steve Ayers added 4 commits August 4, 2025 09:54
Signed-off-by: Steve Ayers <sayers@buf.build>
Signed-off-by: Steve Ayers <sayers@buf.build>
Signed-off-by: Steve Ayers <sayers@buf.build>
Signed-off-by: Steve Ayers <sayers@buf.build>
@smaye81 smaye81 force-pushed the sayers/deps_aug_25 branch from 3ec7f45 to 4b5e113 Compare August 4, 2025 13:54
Signed-off-by: Timo Stamm <ts@timostamm.de>
@smaye81 smaye81 merged commit b7a9c5c into main Aug 4, 2025
21 checks passed
@smaye81 smaye81 deleted the sayers/deps_aug_25 branch August 4, 2025 17:03
smaye81 pushed a commit that referenced this pull request Aug 4, 2025
SSIA

---------

Signed-off-by: Steve Ayers <sayers@buf.build>
Signed-off-by: Timo Stamm <ts@timostamm.de>
Co-authored-by: Timo Stamm <ts@timostamm.de>
Signed-off-by: Steve Ayers <sayers@buf.build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants