Skip to content

Removing star exports from @fluentui/react-badge#22114

Merged
khmakoto merged 4 commits intomicrosoft:masterfrom
khmakoto:reactBadgeStarExports
Mar 16, 2022
Merged

Removing star exports from @fluentui/react-badge#22114
khmakoto merged 4 commits intomicrosoft:masterfrom
khmakoto:reactBadgeStarExports

Conversation

@khmakoto
Copy link
Member

Current Behavior

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

New Behavior

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

Related Issue(s)

#22099

@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-badge
Badge
20.895 kB
6.567 kB
react-badge
CounterBadge
21.848 kB
6.883 kB
react-badge
PresenceBadge
21.951 kB
6.565 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 e0660222b8d9f4f38a61b718c18d4c67e52c8df9

@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: e0660222b8d9f4f38a61b718c18d4c67e52c8df9 (build)

@ecraig12345
Copy link
Member

Build is failing due to a bunch of the exports being duplicated (which I also see looking at the file)

export * from './CounterBadge';
export {
Badge,
badgeClassName,
Copy link
Contributor

Choose a reason for hiding this comment

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

Each of the components needs to export its <component>ClassNames object (example)

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
Copy link
Member Author

I don't know how this became so messed up 😆

@codesandbox-ci
Copy link

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 df4078a:

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

@fabricteam
Copy link
Collaborator

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1070 1048 5000
Button mount 644 616 5000
FluentProvider mount 2100 2083 5000
FluentProviderWithTheme mount 303 310 10
FluentProviderWithTheme virtual-rerender 254 272 10
FluentProviderWithTheme virtual-rerender-with-unmount 348 336 10
MakeStyles mount 1853 1867 50000

@khmakoto khmakoto merged commit dff9265 into microsoft:master Mar 16, 2022
@khmakoto khmakoto deleted the reactBadgeStarExports branch March 16, 2022 20:54
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.

5 participants