build: add component size check - #8111
Draft
tomdavies73 wants to merge 1 commit into
Draft
Conversation
tomdavies73
force-pushed
the
component_size_reporting
branch
4 times, most recently
from
August 3, 2026 10:32
d50e556 to
f8851f9
Compare
tomdavies73
force-pushed
the
component_size_reporting
branch
from
August 3, 2026 10:43
f8851f9 to
82a3e30
Compare
tomdavies73
force-pushed
the
component_size_reporting
branch
from
August 3, 2026 11:03
82a3e30 to
7b53bdb
Compare
Contributor
|
Tracking size regressions looks to be very helpful. Although right now, summing up .js files ignores the dependency graph. It might flag harmless tree-shakeable code or miss a massive dependency outside the folder, which makes the output hard to trust. I see here two ways to play, depending on what you want to do:
There's a chance I missed the scope. Anyway, regression tracking rules. Let me know if these thoughts actually fit our workflow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed behaviour
Adds a component size check which can be observed locally. Intended to help devs in checking sizes in component changes during development. Whilst not indicative of bundle size it can be used as a measurement to track if component size changes are intended.
Will also never block PRs, only to be used as a supplementary check when needed.
Locally via
npm run component-size-check:Current behaviour
Currently, there is no standardised way to check component size differences easily and quickly.
Checklist
d.tsfile added or updated if requiredQA
Additional context
Testing instructions