Skip to content

Proper Filtering with Recursive Imports #13

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

Open
RayBenefield opened this issue Nov 19, 2017 · 0 comments
Open

Proper Filtering with Recursive Imports #13

RayBenefield opened this issue Nov 19, 2017 · 0 comments

Comments

@RayBenefield
Copy link

PR #11 introduced recursive imports however does not properly handle filtering at the import level for deep imports.

|- index.js
|- dir
    |- a.js
    |- c.js
    |- nested
        |- d.js
        |- b.js

The following should be possible:

import { A, Nested } from './dir/*';

console.log(A()); // Whatever is in './a.js'
console.log(Nested.D()); // Whatever is in './nested/d.js'
console.log(Nested.B()); // Whatever is in './nested/b.js'
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