diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-10-30 02:19:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-30 03:19:03 +0100 |
commit | 6be6c517d0691bf1d14eef67668e575c84cdfdf4 (patch) | |
tree | fd6b37f2807f78325a08fff5e34166d6eec84ca7 /cli/tsc.rs | |
parent | 1854c6f73be9d4439807911ce9cba1125af93dd4 (diff) |
fix(cli/fmt): Strip "\\?\" prefix when displaying Windows paths (#8135)
Diffstat (limited to 'cli/tsc.rs')
-rw-r--r-- | cli/tsc.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/tsc.rs b/cli/tsc.rs index 801ac8e8f..303868d44 100644 --- a/cli/tsc.rs +++ b/cli/tsc.rs @@ -7,6 +7,7 @@ use crate::disk_cache::DiskCache; use crate::file_fetcher::SourceFile; use crate::file_fetcher::SourceFileFetcher; use crate::flags::Flags; +use crate::fs::canonicalize_path; use crate::js; use crate::media_type::MediaType; use crate::module_graph::ModuleGraph; @@ -174,7 +175,7 @@ impl CompilerConfig { // Convert the PathBuf to a canonicalized string. This is needed by the // compiler to properly deal with the configuration. - let config_path = config_file.canonicalize().map_err(|_| { + let config_path = canonicalize_path(&config_file).map_err(|_| { io::Error::new( io::ErrorKind::InvalidInput, format!( |