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

bug: exports map key with star in the middle doesn't work #372

Closed
dummdidumm opened this issue Feb 17, 2023 · 1 comment
Closed

bug: exports map key with star in the middle doesn't work #372

dummdidumm opened this issue Feb 17, 2023 · 1 comment

Comments

@dummdidumm
Copy link

enhanced-resolve can't deal with stars in the middle of a key of an exports map. It's allowed though (see subpath patterns).

{
	"exports": {
		"./foo/*.js": "./foo/*.js"
	}
}

To fix it I suggest to replace most of the current implementation around import and export maps with resolve.exports, a widely-used npm package which aims to consolidate resolving export maps across tooling. It would potentially mean to get rid of some of the validation errors this plugin throws when encountering invalid export maps. I'm not sure if you want that, or to what extend.

@dummdidumm
Copy link
Author

Closing as duplicate of #352

@dummdidumm dummdidumm closed this as not planned Won't fix, can't repro, duplicate, stale Feb 17, 2023
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