Skip to content

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

Merged
chrisdholt merged 4 commits into
microsoft:web-components-v3from
chrisdholt:users/chhol/remove-barrel-exports-for-main-bundle
Apr 30, 2024
Merged

fix(web-components): refactor exports to remove most barrel exports for components#31069
chrisdholt merged 4 commits into
microsoft:web-components-v3from
chrisdholt:users/chhol/remove-barrel-exports-for-main-bundle

Conversation

@chrisdholt

Copy link
Copy Markdown
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

fabricteam commented Apr 16, 2024

Copy link
Copy Markdown
Collaborator

📊 Bundle size report

🤖 This report was generated against c07bf2bf7906b7595aaacdeb48255acb8781201b

@@ -0,0 +1,7 @@
{

@fabricteam fabricteam Apr 16, 2024

Copy link
Copy Markdown
Collaborator

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

@codesandbox-ci

codesandbox-ci Bot commented Apr 16, 2024

Copy link
Copy Markdown

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