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

Can't resolve ./*/ exports field #32

Open
Shana-AE opened this issue Dec 5, 2023 · 0 comments
Open

Can't resolve ./*/ exports field #32

Shana-AE opened this issue Dec 5, 2023 · 0 comments

Comments

@Shana-AE
Copy link

Shana-AE commented Dec 5, 2023

nodejs support ./*/ fields in exports, but I try to use it to get off with '.../index', but I found it didn't work, so I saw the source code and found resolve.exports doesn't support it

Please add support for this ./*/ syntax, Thank you!

tmp = key.indexOf('*', 1);
if (!!~tmp) {
match = RegExp(
'^' + key.substring(0, tmp) + '(.*)' + key.substring(1+tmp)
).exec(entry);

nodejs/node#39994 (comment)

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