Skip to content

Commit

Permalink
feature: allow passing through custom options to resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Molinaro committed Jul 28, 2021
1 parent 866f32f commit 5170ecc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Expand Up @@ -76,6 +76,7 @@ export function resolve(
let foundNodePath: string | null | undefined
try {
foundNodePath = tsResolve(mappedPath ?? source, {
...options,
extensions: options.extensions ?? defaultExtensions,
basedir: path.dirname(path.resolve(file)),
packageFilter: options.packageFilter ?? packageFilterDefault,
Expand Down

0 comments on commit 5170ecc

Please sign in to comment.