You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/concepts/module-resolution.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ The dependency module can be from the application code or a third party library.
21
21
22
22
`webpack` resolves three kinds of file paths
23
23
24
-
* Absolute paths
24
+
###Absolute paths
25
25
26
26
```js
27
27
import"/home/me/file";
@@ -30,7 +30,7 @@ import "C:\\Users\\me\\file";
30
30
31
31
Since we already have the absolute path to the file, no further resolution is required.
32
32
33
-
* Relative paths
33
+
###Relative paths
34
34
35
35
```js
36
36
import"../src/file";
@@ -39,7 +39,7 @@ import "./file";
39
39
40
40
In this case, the directory of the resource file is taken to be the context directory (the directory of the currently processed file). The given relative path is joined to the context path to produce the absolute path to the file.
0 commit comments