Skip to content

Commit

Permalink
Real fxi
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Nov 18, 2022
1 parent e22c9bb commit 47ad187
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/swc_ecma_transforms_module/src/path.rs
Expand Up @@ -127,7 +127,11 @@ where
};

if use_orig {
p.set_extension(orig_ext);
if matches!(orig_ext, "js" | "mjs" | "cjs" | "jsx") {
p.set_extension(orig_ext);
} else {
p.set_extension("");
}
}
} else {
p.set_extension("");
Expand Down

0 comments on commit 47ad187

Please sign in to comment.