Skip to content

Commit

Permalink
fix: 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 27, 2021
1 parent 866f32f commit 6001b06
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 6001b06

Please sign in to comment.