Skip to content

Handle the bucket file in components library  #24

@Sboonny

Description

@Sboonny

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: tools/scriptsScripts for supporting dev work, generating config and build artifacts, etc.status: discussingUnder discussion threads. Closed as stale after 60 days of inactivity.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions