diff --git a/src/resolve-ts-path.ts b/src/resolve-ts-path.ts index e280adc..af4797d 100644 --- a/src/resolve-ts-path.ts +++ b/src/resolve-ts-path.ts @@ -16,11 +16,11 @@ export const resolveTsPath = ( if (possibleExtensions) { const extensionlessPath = filePath.slice(0, -extension.length); return possibleExtensions.map( - (tsExtension) => ( + tsExtension => ( extensionlessPath + tsExtension + (query ? `?${query}` : '') - ) + ), ); } };