diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2021-11-01 14:46:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-01 14:46:07 -0400 |
commit | b92019a8475a16213028ab73b15be5a3f7c56e0a (patch) | |
tree | 610cebc1c4f3aeebb8c9d8dd585dc7e8e82805c4 /cli/main.rs | |
parent | 1b684d333df80ba7589e346cafb76b6952354d33 (diff) |
port check_if_should_use_esm_loader to rust (#12562)
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cli/main.rs b/cli/main.rs index 67b59a443..d1ee4a012 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -1153,11 +1153,7 @@ async fn run_command( // this file. worker.execute_side_module(&compat::MODULE_URL).await?; - let use_esm_loader = compat::check_if_should_use_esm_loader( - &mut worker.js_runtime, - &main_module.to_file_path().unwrap().display().to_string(), - ) - .await?; + let use_esm_loader = compat::check_if_should_use_esm_loader(&main_module)?; if use_esm_loader { // ES module execution in Node compatiblity mode |