From 6001b06bc3ba1872c02414b9b99e12c255258d81 Mon Sep 17 00:00:00 2001 From: Mark Molinaro Date: Tue, 27 Jul 2021 22:32:22 +0000 Subject: [PATCH] fix: allow passing through custom options to resolve --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index 6ebbfdf..54ae8b9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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,