Skip to content

Commit c914441

Browse files
authored
Merge pull request #553 from evenfrost/patch-2
Fix note about default extensions
2 parents fd84b2f + c5a12df commit c914441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/configuration/resolve.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ which is what enables users to leave off the extension when importing:
142142
import File from '../path/to/file'
143143
```
144144

145-
W> Using this will **override the default array**, meaning that webpack will no longer try to resolve modules using the default extensions. For modules that are imported with their extension, e.g. `import SomeFile from "./somefile.ext"`, to be properly resolved, an empty string must be included in the array.
145+
W> Using this will **override the default array**, meaning that webpack will no longer try to resolve modules using the default extensions. For modules that are imported with their extension, e.g. `import SomeFile from "./somefile.ext"`, to be properly resolved, a string containing "\*" must be included in the array.
146146

147147

148148
## `resolve.mainFields`

0 commit comments

Comments
 (0)