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

Handle the bucket file in components library #24

Open
Sboonny opened this issue Nov 24, 2023 · 1 comment
Open

Handle the bucket file in components library #24

Sboonny opened this issue Nov 24, 2023 · 1 comment
Labels
scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc. status: discussing Under discussion threads. Closed as stale after 60 days of inactivity.

Comments

@Sboonny
Copy link
Member

Sboonny commented Nov 24, 2023

This is part of best practices and UI components rework, when the UI component is moved to its own library.


Creating a file that store the components export is fine in /learn, because of bundlers handling tree shaking.

Bundlers can't do tree shaking with external libraries, it doesn't apply in runtime.

There are multiple ways to handle them:

  • implement the components similar to radix
  • bundle the library together with the application code
  • move to next 14
@namrata18s
Copy link

can I work on this issue?

@huyenltnguyen huyenltnguyen transferred this issue from freeCodeCamp/freeCodeCamp Apr 5, 2024
@huyenltnguyen huyenltnguyen added status: discussing Under discussion threads. Closed as stale after 60 days of inactivity. scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc. labels Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc. status: discussing Under discussion threads. Closed as stale after 60 days of inactivity.
Projects
None yet
Development

No branches or pull requests

3 participants