Skip to content

Commit

Permalink
Only file
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Nov 14, 2022
1 parent 474357b commit 54e919a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/swc_ecma_transforms_module/src/path.rs
Expand Up @@ -121,7 +121,7 @@ where

if let Some(orig_ext) = orig_ext {
let use_orig = if let Some(ext) = p.extension() {
ext == "ts" || ext == "tsx"
(ext == "ts" || ext == "tsx") && p.is_file()
} else {
false
};
Expand Down

0 comments on commit 54e919a

Please sign in to comment.