Skip to content

Commit 0725c91

Browse files
docs(concepts) correct main fileds title in the text to make sense (#3329)
1 parent 4c6853e commit 0725c91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/concepts/module-resolution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Once the path is resolved based on the above rule, the resolver checks to see if
6666
If the path points to a folder, then the following steps are taken to find the right file with the right extension:
6767

6868
- If the folder contains a `package.json` file, then fields specified in [`resolve.mainFields`](/configuration/resolve/#resolvemainfields) configuration option are looked up in order, and the first such field in `package.json` determines the file path.
69-
- 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/#resolvemainfiles) configuration option are looked for in order, to see if a matching filename exists in the imported/required directory .
69+
- If there is no `package.json` or if the [`resolve.mainFields`](/configuration/resolve/#resolvemainfields) do not return a valid path, file names specified in the [`resolve.mainFiles`](/configuration/resolve/#resolvemainfiles) configuration option are looked for in order, to see if a matching filename exists in the imported/required directory .
7070
- The file extension is then resolved in a similar way using the [`resolve.extensions`](/configuration/resolve/#resolveextensions) option.
7171

7272
webpack provides reasonable [defaults](/configuration/resolve) for these options depending on your build target.

0 commit comments

Comments
 (0)