Skip to content

Commit

Permalink
docs(configuration): add resolve.cache
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Mar 23, 2024
1 parent 6816201 commit 3956b9c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/content/configuration/resolve.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,23 @@ Configure resolve options by the type of module request.
};
```

### resolve.cache

`boolean`

Enables caching of successfully resolved requests, allowing cache entries to be revalidated.

**webpack.config.js**

```js
module.exports = {
//...
resolve: {
cache: true,
},
};
```

### resolve.cachePredicate

`function(module) => boolean`
Expand Down

0 comments on commit 3956b9c

Please sign in to comment.