Skip to content

Commit

Permalink
chore(resolve): update docs to mention we only support resolverConfig…
Browse files Browse the repository at this point in the history
….modules
  • Loading branch information
GertSallaerts committed Dec 6, 2024
1 parent 542dbd1 commit ceb33ff
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/shared-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,16 @@ If a path is relative, it will be resolved from CWD.

## resolverConfig

Override the options generated by this plugin for resolving require and import statements. These
options are passed down to `enhanced-resolve`'s factory method and are documented [here on their
GitHub repository](https://github.com/webpack/enhanced-resolve?tab=readme-ov-file#resolver-options).
Override the options generated by this plugin for resolving require and import statements.

While these options are passed down to [`enhanced-resolve`](https://github.com/webpack/enhanced-resolve)'s factory method, we only support a subset of the options they allow. These are documented below.

The options you define here are assigned over the default options generated by the plugin.

Supported options:

- `resolverConfig.modules`: A list of directories to resolve modules from, can be absolute path or folder name

### Example resolverConfig

```json
Expand Down

0 comments on commit ceb33ff

Please sign in to comment.