November 2019
Beginner
804 pages
20h 1m
English
TypeScript has two built-in strategies for resolving modules: classic and node. The default is node, which corresponds to the Node.js style (https://nodejs.org/api/modules.html). You can change the default strategy through the moduleResolution compiler flag.
As its name suggests, the node strategy takes inspiration from the mechanism used by Node.js to resolve modules at runtime. It is described here: https://nodejs.org/api/modules.html.
Let's now look at relative imports.
Read now
Unlock full access