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

Smart resolve or wildcards #24

Open
gunins opened this issue Feb 15, 2018 · 1 comment
Open

Smart resolve or wildcards #24

gunins opened this issue Feb 15, 2018 · 1 comment
Assignees

Comments

@gunins
Copy link

gunins commented Feb 15, 2018

Hi, there is any option to support module resolve, with multiple files. For example

 ...
include:{   
    'ramda': './node_modules/ramda/es'
}
...

I can use ramda/lens or ramda/lensPath

Another option, should be, wildcards.

 ...
include:{   
    'ramda/**/*': './node_modules/ramda/es/**/*'
}
...

At the moment need to map each file separately.

 ...
include:{   
    'ramda/lens': './node_modules/ramda/es/lens',
    'ramda/lensPath': './node_modules/ramda/es/lensPath'
...
}
...

This is quite time consuming, if you need import many modules from same location. I tried with path option, no success.

@darlanalves
Copy link
Member

Hi!
At the moment, no. The resolution is quite simple, it matches exact names from a map of paths.
The dynamic resolution just adds the found addresses to the same map for caching.

To allow that, a new algorithm needs to be added to include option to allow glob matchers.

@darlanalves darlanalves self-assigned this Jul 24, 2020
@darlanalves darlanalves pinned this issue Jul 24, 2020
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