Skip to content

Commit 55a4b59

Browse files
authored
docs(configuration): add resolve.fullySpecified (#7203)
1 parent 9680ca8 commit 55a4b59

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/content/configuration/resolve.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,23 @@ module.exports = {
463463
};
464464
```
465465

466+
### resolve.fullySpecified
467+
468+
`boolean`
469+
470+
When set to true, this option treats user-specified requests as fully specified. This means that no extensions are automatically added, and the mainFiles within directories are not resolved. It's important to note that this behavior does not affect requests made through `mainFields`, `aliasFields`, or `aliases`.
471+
472+
**webpack.config.js**
473+
474+
```js
475+
module.exports = {
476+
//...
477+
resolve: {
478+
fullySpecified: true,
479+
},
480+
};
481+
```
482+
466483
### resolve.importsFields
467484

468485
`[string]`

0 commit comments

Comments
 (0)