-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
feat(web-components): add explicit exports for design tokens and add package export path for theme utills #28952
Conversation
📊 Bundle size report🤖 This report was generated against eee4a63c0af9e2c51b30477053c4d990cd331405 |
🕵 fluentui-web-components-v3 No visual regressions between this PR and main |
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: eee4a63c0af9e2c51b30477053c4d990cd331405 (build) |
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 4f118b1:
|
@@ -1,2 +1,387 @@ | |||
export * from './design-tokens.js'; | |||
export { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should eventually add a test which verifies that this file exports everything what is exported from design-tokens
Previous Behavior
Certain bundlers such as ESBuild don't tree shake two levels of
export *
instances, so all tokens are included.New Behavior
Introduces named exports and package export path for convenience + better esm support.
Related Issue(s)
n/a