Skip to content

Commit 9d28450

Browse files
justinpombrioEugeneHlushko
authored andcommitted
Clarify behavior of resolve.extensions. (#2913)
* Clarify behavior of resolve.extensions. * Update src/content/configuration/resolve.md Co-Authored-By: justinpombrio <justinlpombrio@gmail.com>
1 parent 55e2f12 commit 9d28450

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/content/configuration/resolve.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ module.exports = {
196196

197197
`[string]: ['.wasm', '.mjs', '.js', '.json']`
198198

199-
Automatically resolve certain extensions.
199+
Attempt to resolve these extensions in order.
200+
201+
W> If multiple files share the same name but have different extensions, webpack will resolve the one with the extension listed first in the array and skip the rest.
200202

201203
__webpack.config.js__
202204

0 commit comments

Comments
 (0)