From 54e919a04b676731da42e6cb64cdcdad5f92bb9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Mon, 14 Nov 2022 11:47:12 +0900 Subject: [PATCH] Only file --- crates/swc_ecma_transforms_module/src/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/swc_ecma_transforms_module/src/path.rs b/crates/swc_ecma_transforms_module/src/path.rs index 6569226cbf4c..f4edf5b39326 100644 --- a/crates/swc_ecma_transforms_module/src/path.rs +++ b/crates/swc_ecma_transforms_module/src/path.rs @@ -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 };