diff options
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 |