Do you want to request a feature or report a bug?
What is the current behavior?
When using the
alias key to re-map imports, if the more general alias appears above a more specific alias in the object, imports to the more specific module will fail.
We recently published a new version of RxJS and published a re-mapping file to point deep imports to their ESM build sources rather than CJS. Came across this issue debugging some user issues.
If the current behavior is a bug, please provide the steps to reproduce.
Created a reproduction here. Clone repo on
webpack_alias_failure branch, go to
Comments show how to “fix” the issue in
What is the expected behavior?
alias is an object. Sequence of keys should not be depended up on for behavior.
If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.