Skip to content

Commit c5a12df

Browse files
authored
Fix note about default extensions
See [#3043](webpack/webpack#3043 (comment)) for reference.
1 parent baae7c8 commit c5a12df

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)