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

fix(web-components): refactor exports to remove most barrel exports for components #31069

Conversation

chrisdholt
Copy link
Member

Previous Behavior

All components are exported from the main bundle via barrel exports which can create problems for modern compilers.

New Behavior

All exports but design tokens have been moved away from barrel exports. I'm holding on the design token export simply as it doesn't have any clear side effectful issues and currently when setting theme there isn't a good way to tree shake what isn't used. That work is likely to follow.

Related Issue(s)

  • Fixes #

@chrisdholt chrisdholt requested a review from a team as a code owner April 16, 2024 18:08
@fabricteam
Copy link
Collaborator

fabricteam commented Apr 16, 2024

📊 Bundle size report

🤖 This report was generated against c07bf2bf7906b7595aaacdeb48255acb8781201b

@@ -0,0 +1,7 @@
{
Copy link
Collaborator

@fabricteam fabricteam Apr 16, 2024

Choose a reason for hiding this comment

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

🕵 fluentui-web-components-v3 Open the Visual Regressions report to inspect the affected screenshots

Slider 2 screenshots
Image Name Diff(in Pixels) Image Type
Slider.Slider Steps.normal.chromium.png 1 Changed
Slider.Slider Steps Vertical.normal.chromium.png 1 Changed
Text 1 screenshots
Image Name Diff(in Pixels) Image Type
Text.Block.normal.chromium.png 995 Changed

Copy link

codesandbox-ci bot commented Apr 16, 2024

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.

@chrisdholt chrisdholt force-pushed the users/chhol/remove-barrel-exports-for-main-bundle branch 2 times, most recently from 95cc713 to 72f0c36 Compare April 25, 2024 18:58
@chrisdholt chrisdholt force-pushed the users/chhol/remove-barrel-exports-for-main-bundle branch from cc2b31d to 9b2f020 Compare April 26, 2024 17:51
@chrisdholt chrisdholt merged commit dc5cd66 into microsoft:web-components-v3 Apr 30, 2024
15 checks passed
radium-v pushed a commit that referenced this pull request Apr 30, 2024
…or components (#31069)

Co-authored-by: Christopher Holt <=>
radium-v pushed a commit that referenced this pull request May 2, 2024
…or components (#31069)

Co-authored-by: Christopher Holt <=>
radium-v pushed a commit that referenced this pull request May 2, 2024
…or components (#31069)

Co-authored-by: Christopher Holt <=>
radium-v pushed a commit that referenced this pull request May 2, 2024
…or components (#31069)

Co-authored-by: Christopher Holt <=>
radium-v pushed a commit that referenced this pull request May 3, 2024
…or components (#31069)

Co-authored-by: Christopher Holt <=>
radium-v pushed a commit that referenced this pull request May 6, 2024
…or components (#31069)

Co-authored-by: Christopher Holt <=>
radium-v pushed a commit that referenced this pull request May 6, 2024
…or components (#31069)

Co-authored-by: Christopher Holt <=>
radium-v pushed a commit that referenced this pull request May 8, 2024
…or components (#31069)

Co-authored-by: Christopher Holt <=>
radium-v pushed a commit that referenced this pull request May 10, 2024
…or components (#31069)

Co-authored-by: Christopher Holt <=>
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