Skip to content

Allow each Component to be imported from respective root folder: multi-entry support #425

@andreawyss

Description

@andreawyss

Sorry for the question, but I could not find info in the docs on how to do this.

I have a library of React Components with a source structure similar to:
https://github.com/mui-org/material-ui/tree/master/packages/material-ui/src

Is it possible to setup TSDX to build the library so that one can import individual components from their individual root folders?

   import Avatar from 'my-library/Avatar';
   import Button from 'my-library/Button';

Currently using TSDX we are forced to import all the components from the root index

   import { Avatar, Button } from 'my-library';

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions