> But it gets even better! Lots of projects make use of path mapping aliases to save a little bit of typing, so that you can use the same import specifiers everywhere and avoid lots of dots ../../../.
This isn't just to "save a little bit of typing", there is a significant amount of mental overhead eliminated by not having to recall and reason about the relative path relationship between each module for every single import, it also prevents the issue where moving around files or refactoring your directory structure breaks your application, forcing you to do potentially dozens of import path updates depending on what got moved around.
This isn't just to "save a little bit of typing", there is a significant amount of mental overhead eliminated by not having to recall and reason about the relative path relationship between each module for every single import, it also prevents the issue where moving around files or refactoring your directory structure breaks your application, forcing you to do potentially dozens of import path updates depending on what got moved around.