Skip to content

Commit 3e4ddda

Browse files
committed
docs(readme): add info about nonRelative option
1 parent 8c55450 commit 3e4ddda

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,11 @@ export default {
5252

5353
## Options
5454

55+
- **`absolute`:** Whether to resolve to absolute paths; defaults to `true`.
56+
- **`nonRelative`:** Whether to resolve [non-relative paths](https://www.typescriptlang.org/docs/handbook/module-resolution.html#relative-vs-non-relative-module-imports) based on tsconfig's `baseUrl`, even if none of the `paths` are matched; defaults to `false`.
57+
- **`preserveExtensions`:** Whether to preserve `.ts` and `.tsx` file extensions instead of having them changed to `.js`; defaults to `false`.
5558
- **`tsConfigPath`:** Custom path to your `tsconfig.json`. Use this if the plugin can't seem to find the correct one by itself.
56-
- **`absolute`:** Whether to resolve to absolute paths or not; defaults to `true`.
5759
- **`transform`:** If the plugin successfully resolves a path, this function allows you to hook into the process and transform that path before it is returned.
58-
- **`preserveExtensions`:** Whether to preserve `.ts` and `.tsx` file extensions instead of having them changed to `.js`; defaults to `false`.
5960

6061
## License
6162

0 commit comments

Comments
 (0)