fix: avoid false DEP0155 warning for "./*" exports on Windows (#58650)
- The logic for emitting the DEP0155 warning now checks that the export key is exactly
"./"before displaying the warning. - Pattern mappings such as
"./*"and valid subpath exports are no longer affected.
Fixes #58650
Review requested:
- [ ] @nodejs/loaders
Thanks! Could you please include a test-case so we can avoid a regression?
@vedant713 Did you find time to add tests yet? This would be useful for the wider community and has been sitting here for a while now
This is clearly not the right fix unfortunately. I will do some further investigation here.
I tried to replicate this today but was entirely unable to - https://github.com/nodejs/node/issues/58650#issuecomment-3505377589. If an updated replication is available please let me know.