diff options
Diffstat (limited to 'cli/tsc.rs')
-rw-r--r-- | cli/tsc.rs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/cli/tsc.rs b/cli/tsc.rs index ae2db6978..90a1a31b5 100644 --- a/cli/tsc.rs +++ b/cli/tsc.rs @@ -1103,6 +1103,9 @@ impl TsCompiler { script_name: &str, ) -> Option<Vec<u8>> { if let Some(module_specifier) = self.try_to_resolve(script_name) { + if module_specifier.as_url().scheme() == "deno" { + return None; + } return match self.get_source_map_file(&module_specifier) { Ok(out) => Some(out.source_code.into_bytes()), Err(_) => { @@ -1848,11 +1851,11 @@ mod tests { (r#"{ "compilerOptions": { "checkJs": true } } "#, true), // JSON with comment ( - r#"{ - "compilerOptions": { - // force .js file compilation by Deno - "checkJs": true - } + r#"{ + "compilerOptions": { + // force .js file compilation by Deno + "checkJs": true + } }"#, true, ), |