-
Notifications
You must be signed in to change notification settings - Fork 23
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: updates to optimize tree shaking #467
Conversation
Test Execution Failed. |
1 similar comment
Test Execution Failed. |
a6140a9
to
d18888c
Compare
Test Execution Failed. |
Test Execution Failed. |
6 similar comments
Test Execution Failed. |
Test Execution Failed. |
Test Execution Failed. |
Test Execution Failed. |
Test Execution Failed. |
Test Execution Failed. |
9b55dea
to
c7ae596
Compare
Test Execution Passed. |
c7ae596
to
f00f872
Compare
Test Execution Passed. |
I've built this, brought it into inner source's |
f00f872
to
c8ff258
Compare
Test Execution Passed. |
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.
Super minor points of clarification, but functionally, I think everything's good to go with this!
packages/@lightningjs/ui-components/src/globals/context/index.d.ts
Outdated
Show resolved
Hide resolved
packages/@lightningjs/ui-components/src/mixins/withThemeStyles/utils.js
Outdated
Show resolved
Hide resolved
packages/@lightningjs/ui-components/src/textures/index-remove.js
Outdated
Show resolved
Hide resolved
c8ff258
to
1570d4f
Compare
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.
Everything looks good!
…ge to withThemeStyles
b288dcc
to
c7dd5b1
Compare
Test Execution Failed. |
# [@lightningjs/ui-components-v2.20.5](https://github.com/rdkcentral/Lightning-UI-Components/compare/@lightningjs/ui-components-v2.20.4...@lightningjs/ui-components-v2.20.5) (2024-03-21) ### Bug Fixes * allow CardContent to pass through style to Tile component ([#487](#487)) ([ef67bc8](ef67bc8)) * allow CardContentVerticalSmall to control marquee onFocus ([#485](#485)) ([6a0208a](6a0208a)) * **KeyboardSearch:** allow custom key styles inside a preset Keyboard ([#484](#484)) ([68387a0](68387a0)) * updates to optimize tree shaking ([#467](#467)) ([f11dc92](f11dc92))
🎉 This PR is included in version @lightningjs/ui-components-v2.20.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
This PR eliminates all re-exports from the codebase and replaces them with direct file references. The primary goal of this change is to improve our project's compatibility with tree shaking. By directly referring to files, we can ensure that only the code actually used in the project is included in the final bundle, which will lead to smaller bundle sizes and better performance in production environments.
References
NO-JIRA
Testing
Testing if tree shaking is working properly takes a few steps. You will need to utilize an existing or new project to see the results.
Build the Project: Execute the Webpack build process using npm run build or your project's equivalent script to generate the production bundle.
Review Output: After the build, review the output to ensure there are no errors or warnings related to the tree shaking process or the direct file references. This step is crucial to verify that the modifications have not introduced any build issues. The final bundle should only include Lightning UI components that have been used in your project. All others should no longer be present in the final code.
Automation
All automation tests should pass as expected. This should have no effect on exported components or functions.
Checklist