diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-07-01 23:52:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-02 00:52:30 +0200 |
commit | b9c0e7cd550ab14fa7da7e33ed87cbeeeb9785a0 (patch) | |
tree | 9212eb183ab3c21ee71531e54f2c16163d1792b7 /cli/tools | |
parent | 4e2f02639ef2cbcfdd335c4446f6faa6a29ad264 (diff) |
Reland "fix(cli): don't store blob and data urls in the module cache" (#18581)
Relands #18261 now that
https://github.com/lucacasonato/esbuild_deno_loader/pull/54 is landed
and used by fresh.
Fixes #18260.
Diffstat (limited to 'cli/tools')
-rw-r--r-- | cli/tools/doc.rs | 2 | ||||
-rw-r--r-- | cli/tools/run.rs | 2 | ||||
-rw-r--r-- | cli/tools/test.rs | 1 |
3 files changed, 0 insertions, 5 deletions
diff --git a/cli/tools/doc.rs b/cli/tools/doc.rs index 87fa25315..73982f819 100644 --- a/cli/tools/doc.rs +++ b/cli/tools/doc.rs @@ -18,7 +18,6 @@ use deno_core::resolve_url_or_path; use deno_doc as doc; use deno_graph::GraphKind; use deno_graph::ModuleSpecifier; -use std::path::PathBuf; pub async fn print_docs( flags: Flags, @@ -76,7 +75,6 @@ pub async fn print_docs( let root_specifier = resolve_path("./$deno$doc.ts", cli_options.initial_cwd()).unwrap(); let root = File { - local: PathBuf::from("./$deno$doc.ts"), maybe_types: None, media_type: MediaType::TypeScript, source: format!("export * from \"{module_specifier}\";").into(), diff --git a/cli/tools/run.rs b/cli/tools/run.rs index bc55f3ead..6ded628ea 100644 --- a/cli/tools/run.rs +++ b/cli/tools/run.rs @@ -81,7 +81,6 @@ pub async fn run_from_stdin(flags: Flags) -> Result<i32, AnyError> { std::io::stdin().read_to_end(&mut source)?; // Create a dummy source file. let source_file = File { - local: main_module.clone().to_file_path().unwrap(), maybe_types: None, media_type: MediaType::TypeScript, source: String::from_utf8(source)?.into(), @@ -163,7 +162,6 @@ pub async fn eval_command( .into_bytes(); let file = File { - local: main_module.clone().to_file_path().unwrap(), maybe_types: None, media_type: MediaType::Unknown, source: String::from_utf8(source_code)?.into(), diff --git a/cli/tools/test.rs b/cli/tools/test.rs index dc48ab9e5..964dbe0e8 100644 --- a/cli/tools/test.rs +++ b/cli/tools/test.rs @@ -1138,7 +1138,6 @@ fn extract_files_from_regex_blocks( .unwrap_or(file_specifier); Some(File { - local: file_specifier.to_file_path().unwrap(), maybe_types: None, media_type: file_media_type, source: file_source.into(), |