webpack.js.org icon indicating copy to clipboard operation
webpack.js.org copied to clipboard

Mistake on Package exports documentation page

Open thheller opened this issue 2 years ago • 0 comments

On https://webpack.js.org/guides/package-exports/ an example is listed for package/other-prefix/deep/file.js supposed to resolve to .../package/yet-another/deep/file/deep/file.js using the "./other-prefix/*": "./yet-another/*/*.js".

This appears to be incorrect (at least enhanced-resolve fails to resolve this example) or there is some abiguity here that should be cleared up. I don't know what the exact rules for this are but does it ever strip extensions?

I guess the example is meant to be package/other-prefix/deep/file so just without the extension?

thheller avatar Dec 29 '21 09:12 thheller