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

Import entire directory as namespace #44

Closed
fitzage opened this issue May 3, 2024 · 1 comment
Closed

Import entire directory as namespace #44

fitzage opened this issue May 3, 2024 · 1 comment

Comments

@fitzage
Copy link

fitzage commented May 3, 2024

I’d love to be able to point this at an entire directory or subdirectory and have all the components in that directory be namespaced, so something like this:

imports: [
  {
    './src/components/atoms/*': ‘Atoms',
  },
];

and then use them like <Atoms.MyAtom />

Basically an expansion of the current Namespace Import to support a directory of components instead of a single file with multiple modules.

@delucis
Copy link
Owner

delucis commented May 3, 2024

Thanks for the feature request @fitzage! I think this is a duplicate of #20, so will close it to redirect discussion there.

@delucis delucis closed this as not planned Won't fix, can't repro, duplicate, stale May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants