November 2019
Beginner
804 pages
20h 1m
English
Build processes can be quite complex. TypeScript provides multiple compiler options that you can use to configure the module resolution process and adapt it to your project needs.
The first setting that you can use is baseUrl. It tells the compiler where to look for modules. All non-relative module imports will be searched relative to baseUrl.
Another useful setting is called paths. It allows you to configure path mappings. Such mappings can be used to override the module resolution process for a given name or pattern (including wildcards).
Check out the following article if you want to know more about path mappings: https://netbasal.com/sexier-imports-in-typescript-e3c645bdd3c6.
Read now
Unlock full access