Skip to content

Commit

Permalink
fix: Use the correct filename when looking for tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
scagood committed Sep 10, 2023
1 parent b0de4ae commit 1cf4877
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/util/get-typescript-extension-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ module.exports = function getTypescriptExtensionMap(context) {
return (
get(context.options?.[0]) ||
get(context.settings?.n ?? context.settings?.node) ||
getFromTSConfig(context.filename) ||
getFromTSConfig(
context.physicalFilename ?? context.getPhysicalFilename()
) ||
PRESERVE_MAPPING
)
}
Expand Down

0 comments on commit 1cf4877

Please sign in to comment.