eslint-plugin-canonical icon indicating copy to clipboard operation
eslint-plugin-canonical copied to clipboard

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

Open gabriel-calin-lazar opened this issue 9 months ago • 0 comments

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

gabriel-calin-lazar avatar May 02 '24 09:05 gabriel-calin-lazar