refactor(bundle-size): drop dead code paths#540
Merged
layershifter merged 1 commit intoJun 11, 2026
Conversation
📊 Bundle size report🤖 This report was generated against 43ddff99f4472476797bfb988b70eba20ff7da0d |
This was referenced May 11, 2026
layershifter
force-pushed
the
chore/bundle-size-stack-3
branch
3 times, most recently
from
June 10, 2026 13:36
c1f3027 to
15c7c1c
Compare
layershifter
force-pushed
the
chore/bundle-size-stack-3
branch
2 times, most recently
from
June 10, 2026 13:52
f4e888b to
c1cabc5
Compare
mshoho
approved these changes
Jun 11, 2026
Mechanical hygiene with no behavioural change: - Audit `Utils.ts` to remove dead helpers and inline tiny one-shot utilities at call sites. - Switch `MutationEvent` removed/added node loops from index-based `for` to `for...of` (slightly shorter emit, easier to read). - Drop dead `moz`/`ms` branches from the Outline fullscreen-event detection cascade. Firefox unprefixed `fullscreenchange` since v64 (Dec 2018) and the `ms*` variant was IE 11 / legacy EdgeHTML — both excluded by the project's browserslist. The Safari `webkit` branch stays: Safari 15-16.3 still needs it (unprefixed since 16.4).
layershifter
force-pushed
the
chore/bundle-size-stack-3
branch
from
June 11, 2026 12:44
c1cabc5 to
ec710f4
Compare
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.

Summary
Mechanical hygiene with no behavioural change:
Utils.tsto remove dead helpers and inline tiny one-shot utilities at call sites.getRadioButtonGroupkeeps its prior find-last-checked semantics (single-pass loop, noArray.from/.filter/.findchain);disposeInstanceContextkeeps its eagerelementByUId/containerBoundingRectCacheclears before unhooking.MutationEventremoved/added node loops from index-basedfortofor…of(slightly shorter emit, easier to read).moz/msbranches from the Outline fullscreen-event detection cascade. Firefox unprefixedfullscreenchangesince v64 (Dec 2018) and thems*variant was IE 11 / legacy EdgeHTML — both excluded by.browserslistrc. The Safariwebkitbranch stays: Safari 15–16.3 still needs it (unprefixed since 16.4).