You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
On windows, this can conflict with plugins using other resolvers. For example typescript's built-in resolver returns module paths using forward slashes, while commonjs takes output of resolve at face value. Since that happens to return system native path with backslashes (in ver 1.1.7 at least), mishaps can result depending on which plugin happened to resolve a given module first.
One way to fix it would be to normalize path before using it as a key.
The text was updated successfully, but these errors were encountered:
ezolenko
changed the title
namedExports is using non-normalized resolved module paths as module id
namedExports is using non-normalized resolved module path as module id
Mar 10, 2017
Thanks. This sounds like the sort of thing I'm liable to mess up if I try and fix it — any chance you could put a simple repro together that could be turned into a test case (or better yet, a PR with said test, or even a fix)?
On windows, this can conflict with plugins using other resolvers. For example typescript's built-in resolver returns module paths using forward slashes, while commonjs takes output of
resolve
at face value. Since that happens to return system native path with backslashes (in ver 1.1.7 at least), mishaps can result depending on which plugin happened to resolve a given module first.One way to fix it would be to normalize path before using it as a key.
The text was updated successfully, but these errors were encountered: