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

[Feature request] virtual-module feature should allow for nested virtual modules #31

Open
gabriel-calin-lazar opened this issue May 2, 2024 · 0 comments

Comments

@gabriel-calin-lazar
Copy link

Bug report or Feature request?

Feature request

Information

virtual-module feature should allow for nested virtual modules
a parent virtual modules should be able to re-export members from nested - child - virtual modules

components/
├── Foo/
│ └── index.ts
│ └── Qux/
│ └── index.ts/
│ └── Quux/
│ └── index.ts
└── Bar

Qux should be able to re-export from Quux
Foo should be able to re-export from Qux
Bar should be able to import from Foo

if specific members of Quux are re-exported by Qux
and
same specific members are re-exported by Foo
then
Bar should be able to import them from Foo

currently, this is not supported as we get
Cannot import a private path. /index.ts belongs to parent virtual module
when re-exporting from nested virtual module

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

1 participant