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

chore: remove @fluentui/bundle-size #28601

Merged
merged 2 commits into from
Jul 24, 2023

Conversation

layershifter
Copy link
Member

Fixes #27934.

The previous PR migrates us to monosize (#26826), this PR removes @fluentui/bundle-size. Dependencies that were used only by @fluentui/bundle-size also removed from monorepo.

@layershifter layershifter requested review from a team as code owners July 20, 2023 15:19
@github-actions github-actions bot added this to the July Project Cycle Q3 2023 milestone Jul 20, 2023
@fabricteam
Copy link
Collaborator

fabricteam commented Jul 20, 2023

Perf Analysis (@fluentui/react-components)

Scenario Render type Master Ticks PR Ticks Iterations Status
InfoButton mount 9 20 5000 Possible regression
All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 620 581 5000
Button mount 296 286 5000
Field mount 1053 1033 5000
FluentProvider mount 627 650 5000
FluentProviderWithTheme mount 75 75 10
FluentProviderWithTheme virtual-rerender 73 73 10
FluentProviderWithTheme virtual-rerender-with-unmount 78 81 10
InfoButton mount 9 20 5000 Possible regression
MakeStyles mount 863 873 50000
Persona mount 1666 1640 5000
SpinButton mount 1332 1328 5000

@fabricteam
Copy link
Collaborator

fabricteam commented Jul 20, 2023

🕵 fluentuiv8 No visual regressions between this PR and main

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 20, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit d894a46:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@fabricteam
Copy link
Collaborator

fabricteam commented Jul 20, 2023

Perf Analysis (@fluentui/react-northstar)

Perf tests with no regressions
Scenario Current PR Ticks Baseline Ticks Ratio
CarouselMinimalPerf.default 281 250 1.12:1
HeaderMinimalPerf.default 219 201 1.09:1
TableMinimalPerf.default 253 232 1.09:1
StatusMinimalPerf.default 425 400 1.06:1
AccordionMinimalPerf.default 84 80 1.05:1
FormMinimalPerf.default 226 216 1.05:1
PortalMinimalPerf.default 87 83 1.05:1
LoaderMinimalPerf.default 198 191 1.04:1
IconMinimalPerf.default 385 371 1.04:1
TooltipMinimalPerf.default 1290 1244 1.04:1
TreeMinimalPerf.default 489 470 1.04:1
ButtonSlotsPerf.default 327 316 1.03:1
ChatMinimalPerf.default 444 431 1.03:1
ItemLayoutMinimalPerf.default 735 713 1.03:1
ListCommonPerf.default 390 379 1.03:1
MenuButtonMinimalPerf.default 966 934 1.03:1
ReactionMinimalPerf.default 219 213 1.03:1
TextMinimalPerf.default 197 191 1.03:1
AnimationMinimalPerf.default 308 302 1.02:1
AvatarMinimalPerf.default 109 107 1.02:1
CardMinimalPerf.default 308 302 1.02:1
DialogMinimalPerf.default 451 443 1.02:1
DividerMinimalPerf.default 212 207 1.02:1
DropdownManyItemsPerf.default 395 389 1.02:1
DropdownMinimalPerf.default 1443 1418 1.02:1
LabelMinimalPerf.default 226 222 1.02:1
LayoutMinimalPerf.default 208 204 1.02:1
ListMinimalPerf.default 306 301 1.02:1
PopupMinimalPerf.default 353 346 1.02:1
ProviderMinimalPerf.default 206 201 1.02:1
SplitButtonMinimalPerf.default 2273 2228 1.02:1
TextAreaMinimalPerf.default 288 283 1.02:1
ChatDuplicateMessagesPerf.default 154 152 1.01:1
ProviderMergeThemesPerf.default 676 670 1.01:1
SegmentMinimalPerf.default 197 196 1.01:1
SliderMinimalPerf.default 752 741 1.01:1
BoxMinimalPerf.default 192 192 1:1
DatepickerMinimalPerf.default 3528 3541 1:1
FlexMinimalPerf.default 152 152 1:1
SkeletonMinimalPerf.default 203 204 1:1
TableManyItemsPerf.default 1101 1101 1:1
VideoMinimalPerf.default 433 432 1:1
AttachmentSlotsPerf.default 637 643 0.99:1
EmbedMinimalPerf.default 1839 1856 0.99:1
GridMinimalPerf.default 185 187 0.99:1
RosterPerf.default 1520 1542 0.99:1
CustomToolbarPrototype.default 1449 1462 0.99:1
ToolbarMinimalPerf.default 517 523 0.99:1
ButtonMinimalPerf.default 83 85 0.98:1
CheckboxMinimalPerf.default 1142 1160 0.98:1
InputMinimalPerf.default 518 529 0.98:1
ListNestedPerf.default 326 331 0.98:1
RefMinimalPerf.default 104 106 0.98:1
ButtonOverridesMissPerf.default 643 661 0.97:1
HeaderSlotsPerf.default 451 467 0.97:1
MenuMinimalPerf.default 483 498 0.97:1
RadioGroupMinimalPerf.default 265 274 0.97:1
TreeWith60ListItems.default 84 87 0.97:1
ChatWithPopoverPerf.default 189 199 0.95:1
ImageMinimalPerf.default 221 233 0.95:1
AlertMinimalPerf.default 153 162 0.94:1
AttachmentMinimalPerf.default 82 87 0.94:1
ListWith60ListItems.default 370 398 0.93:1

@fabricteam
Copy link
Collaborator

fabricteam commented Jul 20, 2023

🕵 FluentUIV0 No visual regressions between this PR and main

@fabricteam
Copy link
Collaborator

fabricteam commented Jul 20, 2023

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
global-context
createContext
510 B
330 B
global-context
createContextSelector
537 B
342 B
priority-overflow
createOverflowManager
4.248 kB
1.671 kB
react-accordion
Accordion (including children components)
88.286 kB
26.724 kB
react-alert
Alert
84.992 kB
22.03 kB
react-avatar
Avatar
47.739 kB
14.521 kB
react-avatar
AvatarGroup
15.695 kB
6.314 kB
react-avatar
AvatarGroupItem
63.915 kB
19.001 kB
react-badge
Badge
23.604 kB
7.272 kB
react-badge
CounterBadge
24.506 kB
7.574 kB
react-badge
PresenceBadge
22.253 kB
7.891 kB
react-button
Button
39.193 kB
9.743 kB
react-button
CompoundButton
46.661 kB
11.257 kB
react-button
MenuButton
43.553 kB
10.979 kB
react-button
SplitButton
51.758 kB
12.571 kB
react-button
ToggleButton
57.629 kB
11.645 kB
react-card
Card - All
89.36 kB
25.284 kB
react-card
Card
83.778 kB
23.685 kB
react-card
CardFooter
9.24 kB
3.907 kB
react-card
CardHeader
11.652 kB
4.741 kB
react-card
CardPreview
10.048 kB
4.254 kB
react-checkbox
Checkbox
33.224 kB
10.727 kB
react-combobox
Combobox (including child components)
87.199 kB
28.143 kB
react-combobox
Dropdown (including child components)
85.602 kB
27.746 kB
react-components
react-components: Button, FluentProvider & webLightTheme
67.576 kB
18.225 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
213.111 kB
59.12 kB
react-components
react-components: FluentProvider & webLightTheme
36.409 kB
12.003 kB
react-datepicker-compat
DatePicker Compat
223.394 kB
59.277 kB
react-dialog
Dialog (including children components)
92.762 kB
27.587 kB
react-divider
Divider
17.49 kB
6.364 kB
react-field
Field
18.174 kB
6.977 kB
react-image
Image
11.561 kB
4.637 kB
react-infobutton
InfoButton
131.361 kB
40.326 kB
react-infobutton
InfoLabel
134.966 kB
41.462 kB
react-input
Input
24.232 kB
7.781 kB
react-label
Label
10.186 kB
4.253 kB
react-link
Link
12.782 kB
5.247 kB
react-menu
Menu (including children components)
132.703 kB
40.62 kB
react-menu
Menu (including selectable components)
135.467 kB
41.115 kB
react-overflow
hooks only
12.505 kB
4.626 kB
react-persona
Persona
55.293 kB
16.535 kB
react-popover
Popover
119.925 kB
36.895 kB
react-portal
Portal
11.935 kB
4.421 kB
react-portal-compat
PortalCompatProvider
6.48 kB
2.203 kB
react-positioning
usePositioning
24.272 kB
8.866 kB
react-progress
ProgressBar
13.941 kB
5.498 kB
react-provider
FluentProvider
18.129 kB
6.73 kB
react-radio
Radio
27.017 kB
8.638 kB
react-radio
RadioGroup
11.376 kB
4.763 kB
react-select
Select
24.955 kB
8.722 kB
react-slider
Slider
34.87 kB
11.178 kB
react-spinbutton
SpinButton
33.756 kB
10.35 kB
react-spinner
Spinner
21.77 kB
7.134 kB
react-switch
Switch
29.511 kB
9.239 kB
react-table
DataGrid
158.216 kB
42.389 kB
react-table
Table (Primitives only)
43.95 kB
12.263 kB
react-table
Table as DataGrid
132.019 kB
33.82 kB
react-table
Table (Selection only)
77.643 kB
19.195 kB
react-table
Table (Sort only)
76.262 kB
18.798 kB
react-tags-preview
InteractionTag
34.171 kB
9.199 kB
react-tags-preview
Tag
25.962 kB
8.49 kB
react-tags-preview
TagGroup
69.142 kB
20.294 kB
react-text
Text - Default
12.574 kB
4.982 kB
react-text
Text - Wrappers
15.726 kB
5.302 kB
react-textarea
Textarea
27.703 kB
9.126 kB
react-theme
Single theme token import
69 B
89 B
react-theme
Teams: all themes
31.987 kB
6.85 kB
react-theme
Teams: Light theme
18.121 kB
5.194 kB
react-toast
Toast (including Toaster)
78.365 kB
23.67 kB
react-tooltip
Tooltip
47.463 kB
16.655 kB
react-utilities
SSRProvider
180 B
159 B
🤖 This report was generated against b34f5f262efaeb8b1e16be2f4085a1576532ef13

@fabricteam
Copy link
Collaborator

fabricteam commented Jul 20, 2023

🕵 fluentuiv9 No visual regressions between this PR and main

@size-auditor
Copy link

size-auditor bot commented Jul 20, 2023

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: b34f5f262efaeb8b1e16be2f4085a1576532ef13 (build)

@fabricteam
Copy link
Collaborator

fabricteam commented Jul 20, 2023

Perf Analysis (@fluentui/react)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
BaseButton mount 628 615 5000
Breadcrumb mount 1677 1645 1000
Checkbox mount 1702 1684 5000
CheckboxBase mount 1494 1475 5000
ChoiceGroup mount 2918 2894 5000
ComboBox mount 656 637 1000
CommandBar mount 6260 6201 1000
ContextualMenu mount 12630 13842 1000
DefaultButton mount 750 742 5000
DetailsRow mount 2121 2207 5000
DetailsRowFast mount 2167 2213 5000
DetailsRowNoStyles mount 1998 2030 5000
Dialog mount 2730 2601 1000
DocumentCardTitle mount 223 230 1000
Dropdown mount 1985 1998 5000
FocusTrapZone mount 1146 1125 5000
FocusZone mount 1050 1069 5000
GroupedList mount 41272 41413 2
GroupedList virtual-rerender 19702 19798 2
GroupedList virtual-rerender-with-unmount 50130 50396 2
GroupedListV2 mount 221 216 2
GroupedListV2 virtual-rerender 201 225 2
GroupedListV2 virtual-rerender-with-unmount 217 224 2
IconButton mount 1084 1072 5000
Label mount 339 329 5000
Layer mount 2688 2732 5000
Link mount 398 390 5000
MenuButton mount 956 937 5000
MessageBar mount 21079 21112 5000
Nav mount 1936 1903 1000
OverflowSet mount 767 787 5000
Panel mount 1789 1764 1000
Persona mount 754 759 1000
Pivot mount 854 860 1000
PrimaryButton mount 848 847 5000
Rating mount 4607 4573 5000
SearchBox mount 909 911 5000
Shimmer mount 1878 1875 5000
Slider mount 1333 1331 5000
SpinButton mount 2824 2819 5000
Spinner mount 389 393 5000
SplitButton mount 1772 1837 5000
Stack mount 406 418 5000
StackWithIntrinsicChildren mount 853 860 5000
StackWithTextChildren mount 2575 2604 5000
SwatchColorPicker mount 5911 5980 5000
TagPicker mount 1427 1416 5000
Text mount 365 371 5000
TextField mount 939 924 5000
ThemeProvider mount 831 824 5000
ThemeProvider virtual-rerender 575 587 5000
ThemeProvider virtual-rerender-with-unmount 1264 1287 5000
Toggle mount 599 599 5000
buttonNative mount 187 187 5000

@layershifter layershifter enabled auto-merge (squash) July 24, 2023 11:12
@layershifter
Copy link
Member Author

Also deprecated on NPM:

image

@layershifter layershifter merged commit 99e835a into microsoft:master Jul 24, 2023
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Jul 25, 2023
* master: (32 commits)
  chore: remove @fluentui/bundle-size (microsoft#28601)
  Breadcrumb UI adjustments (microsoft#28578)
  feat(tools): re-generate react-components.api.md when preparing 1st stable release (microsoft#28561)
  perf(tools): make dependency-mismatch execution 90% faster and ignore */>=9.0.0-alpha versions (microsoft#28597)
  Table/DataGrid: keyboard resizing improvements (microsoft#28493)
  docs(react-tooltip): Add info icon + tooltip story to Tooltip stories (microsoft#28611)
  chore: Updating @fluentui/react-icons to version 2.0.207 (microsoft#28590)
  feat: allSelectedRows and someSelectedRows should be more reliable (microsoft#28577)
  add vr test to react-tags (microsoft#28484)
  applying package updates
  chore: migrate to monosize (microsoft#26826)
  fix(react-conformance): add @swc/helpers to deps instead of tslib as we use swc for transpilation (microsoft#28599)
  fix: MenuItem content should be spaced 12px from the boundary (microsoft#28162)
  feat: implements selection (microsoft#28497)
  bugfix: moves handleBackdropClick from defaultProps to an override (microsoft#28579)
  Fix empty CSS creation (microsoft#28566)
  chore: replace plop with nx within create-* aliases in root package.json (microsoft#28575)
  applying package updates
  fix: High contrast mode hover style icon fixes in react-button components (microsoft#28156)
  SplitButton: updated border right token for primary variant (microsoft#28555)
  ...
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.

[Feature]: migrate from internal bundle-size to OSS monosize
4 participants