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 5, 2023
1 parent 0980852 commit cd5d3eb
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 cd5d3eb

Please sign in to comment.