diff options
Diffstat (limited to 'cli/file_fetcher.rs')
-rw-r--r-- | cli/file_fetcher.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/file_fetcher.rs b/cli/file_fetcher.rs index 92c253e31..bd4e01bdc 100644 --- a/cli/file_fetcher.rs +++ b/cli/file_fetcher.rs @@ -697,7 +697,11 @@ impl FileFetcher { } pub fn get_local_path(&self, specifier: &ModuleSpecifier) -> Option<PathBuf> { - if specifier.scheme() == "file" { + // TODO(@kitsonk) fix when deno_graph does not query cache for synthetic + // modules + if specifier.scheme() == "flags" { + None + } else if specifier.scheme() == "file" { specifier.to_file_path().ok() } else { self.http_cache.get_cache_filename(specifier) |