mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
fix(es/modules): Remove wrong check for jsc.paths
(#6470)
**Related issue:** - Closes https://github.com/swc-project/swc/issues/6466.
This commit is contained in:
parent
e8b0b1c344
commit
072bd13023
@ -121,13 +121,17 @@ where
|
||||
|
||||
if let Some(orig_ext) = orig_ext {
|
||||
let use_orig = if let Some(ext) = p.extension() {
|
||||
(ext == "ts" || ext == "tsx") && p.is_file()
|
||||
ext == "ts" || ext == "tsx"
|
||||
} else {
|
||||
false
|
||||
};
|
||||
|
||||
if use_orig {
|
||||
if matches!(orig_ext, "js" | "mjs" | "cjs" | "jsx") {
|
||||
p.set_extension(orig_ext);
|
||||
} else {
|
||||
p.set_extension("");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
p.set_extension("");
|
||||
|
@ -1 +1 @@
|
||||
import "./rel.ts";
|
||||
import "./rel.js";
|
||||
|
@ -1 +1 @@
|
||||
import "./src/feat.ts";
|
||||
import "./src/feat.js";
|
||||
|
@ -1 +1 @@
|
||||
import "./src/rel.decorator.ts";
|
||||
import "./src/rel.decorator.js";
|
||||
|
@ -1 +1 @@
|
||||
import "./src/rel.decorator.ts";
|
||||
import "./src/rel.decorator";
|
||||
|
@ -1 +1 @@
|
||||
import "./src/rel.decorator.ts";
|
||||
import "./src/rel.decorator.js";
|
||||
|
@ -1 +1 @@
|
||||
import "./src/rel.decorator.ts";
|
||||
import "./src/rel.decorator";
|
||||
|
Loading…
Reference in New Issue
Block a user