Skip to content

Commit 9680ca8

Browse files
authored
docs(configuration): add resolve.cache (#7202)
1 parent 6816201 commit 9680ca8

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
@@ -197,6 +197,23 @@ Configure resolve options by the type of module request.
197197
};
198198
```
199199

200+
### resolve.cache
201+
202+
`boolean`
203+
204+
Enables caching of successfully resolved requests, allowing cache entries to be revalidated.
205+
206+
**webpack.config.js**
207+
208+
```js
209+
module.exports = {
210+
//...
211+
resolve: {
212+
cache: true,
213+
},
214+
};
215+
```
216+
200217
### resolve.cachePredicate
201218

202219
`function(module) => boolean`

0 commit comments

Comments
 (0)