diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2023-04-03 21:05:39 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-03 21:05:39 +0900 |
commit | 6d68392f8ae1b29626af8edc1666a889b69470a9 (patch) | |
tree | 258de97032ff34e71306d48842a2b812c003fd88 /cli/tools/run.rs | |
parent | 3cd7abf73fa104526508984daef54bbb8e120310 (diff) |
Revert "fix(cli): don't store blob and data urls in the module cache (#18261)" (#18572)
This reverts commit b4c61c146a50dea0c4a53d8d505a4308ea7da279.
cc @nayeemrmn
Diffstat (limited to 'cli/tools/run.rs')
-rw-r--r-- | cli/tools/run.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/tools/run.rs b/cli/tools/run.rs index 141be0810..007e0fb2a 100644 --- a/cli/tools/run.rs +++ b/cli/tools/run.rs @@ -72,6 +72,7 @@ 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(), @@ -143,6 +144,7 @@ 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(), |