Skip to content

Removing star exports from @fluentui/react-avatar#22113

Merged
khmakoto merged 6 commits intomicrosoft:masterfrom
khmakoto:reactAvatarStarExports
Mar 16, 2022
Merged

Removing star exports from @fluentui/react-avatar#22113
khmakoto merged 6 commits intomicrosoft:masterfrom
khmakoto:reactAvatarStarExports

Conversation

@khmakoto
Copy link
Member

Current Behavior

react-avatar has export * from ... in src/index.ts.

New Behavior

react-avatar has explicitly named exports in src/index.ts.

Related Issue(s)

#22099

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 15, 2022

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 26b2e79:

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

@fabricteam
Copy link
Collaborator

fabricteam commented Mar 15, 2022

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-avatar
Avatar
45.18 kB
13.128 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
176.084 kB
49.112 kB
react-components
react-components: FluentProvider & webLightTheme
32.526 kB
10.645 kB
🤖 This report was generated against 6bee76a70a7490557cd2b5c2b5639ab6bed2e6a1

@fabricteam
Copy link
Collaborator

fabricteam commented Mar 15, 2022

Perf Analysis (@fluentui/react-components)

Scenario Render type Master Ticks PR Ticks Iterations Status
FluentProviderWithTheme virtual-rerender-with-unmount 689 331 10 Possible regression
All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 900 895 5000
Button mount 570 519 5000
FluentProvider mount 1799 1890 5000
FluentProviderWithTheme mount 284 301 10
FluentProviderWithTheme virtual-rerender 231 258 10
FluentProviderWithTheme virtual-rerender-with-unmount 689 331 10 Possible regression
MakeStyles mount 1582 1534 50000

@size-auditor
Copy link

size-auditor bot commented Mar 15, 2022

Asset size changes

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

Baseline commit: 6bee76a70a7490557cd2b5c2b5639ab6bed2e6a1 (build)

@@ -1,2 +1,3 @@
export * from './Avatar';
export * from './utils/index';
export { Avatar, avatarClassName, renderAvatar_unstable, useAvatarStyles_unstable, useAvatar_unstable } from './Avatar';
Copy link
Contributor

Choose a reason for hiding this comment

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

Avatar now exports avatarClassNames

Copy link
Member Author

Choose a reason for hiding this comment

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

Added.

@khmakoto khmakoto enabled auto-merge (squash) March 16, 2022 19:41
@khmakoto khmakoto merged commit 3c91959 into microsoft:master Mar 16, 2022
@khmakoto khmakoto deleted the reactAvatarStarExports branch March 16, 2022 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants