Skip to content

Commit

Permalink
Patch tsc.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jan 21, 2024
1 parent 9e8d73b commit 331e7ab
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/swc_ecma_loader/src/resolvers/tsc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ where

let mut errors = vec![];
for target in to {
let mut replaced = target.replace('*', extra);
let replaced = target.replace('*', extra);

let _tracing = if cfg!(debug_assertions) {
Some(
Expand Down Expand Up @@ -253,10 +253,6 @@ where
Err(err) => err,
});

if cfg!(target_os = "windows") {
replaced = replaced.replace('/', "\\");
}

if to.len() == 1 {
info!(
"Using `{}` for `{}` because the length of the jsc.paths entry is \
Expand Down

0 comments on commit 331e7ab

Please sign in to comment.