Skip to content

Commit 194a10e

Browse files
committed
docs: document resolver option defaults
1 parent 724c47d commit 194a10e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,15 @@ You can pass through other options of [`unrs-resolver`][] directly.
336336

337337
You can reuse `defaultConditionNames`, `defaultExtensions`, `defaultExtensionAlias`, and `defaultMainFields` by directly using `require`/`import`.
338338

339+
Resolver-specific options use these defaults:
340+
341+
| Option | Default |
342+
| -------------------------- | --------------------------------------------------------------------------------------- |
343+
| `project` | The first available `tsconfig.json` or `jsconfig.json` in the current working directory |
344+
| `alwaysTryTypes` | `true` |
345+
| `bun` | Enabled automatically when running under Bun; otherwise `false` |
346+
| `noWarnOnMultipleProjects` | `false` (show the warning when multiple project files are found) |
347+
339348
## Contributing
340349

341350
- Make sure your change is covered by a test import.

0 commit comments

Comments
 (0)