Skip to content

Commit a856152

Browse files
authored
Merge pull request #590 from korya/patch-1
Fix link text on module resolution page
2 parents cc1dfd4 + 0f120ab commit a856152

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/concepts/module-resolution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Once the path is resolved based on the above rule, the resolver checks to see if
5757
* Otherwise, the file extension is resolved using the [`resolve.extensions`](/configuration/resolve/#resolve-extensions) option, which tells the resolver which extensions (eg - `.js`, `.jsx`) are acceptable for resolution.
5858

5959
If the path points to a folder, then the following steps are taken to find the right file with the right extension:
60-
* If the folder contains a `package.json` file, then fields specified in [`resolve.mainFiles`](/configuration/resolve/#resolve-mainfields) configuration option are looked up in order, and the first such field in `package.json` determines the file path.
60+
* If the folder contains a `package.json` file, then fields specified in [`resolve.mainFields`](/configuration/resolve/#resolve-mainfields) configuration option are looked up in order, and the first such field in `package.json` determines the file path.
6161
* If there is no `package.json` or if the main fields do not return a valid path, file names specified in the [`resolve.mainFiles`](/configuration/resolve/#resolve-mainfiles) configuration option are looked for in order, to see if a matching filename exists in the imported/required directory .
6262
* The file extension is then resolved in a similar way using the `resolve.extensions` option.
6363

0 commit comments

Comments
 (0)