diff options
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cli/main.rs b/cli/main.rs index ecf8d5fc7..48e76d9ab 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -520,11 +520,8 @@ async fn run_with_watch(flags: Flags, script: String) -> Result<(), AnyError> { .collect(); if let Some(import_map) = program_state.flags.import_map_path.clone() { - paths_to_watch.push( - Url::parse(&format!("file://{}", &import_map))? - .to_file_path() - .unwrap(), - ); + paths_to_watch + .push(fs::resolve_from_cwd(std::path::Path::new(&import_map)).unwrap()); } // FIXME(bartlomieju): new file watcher is created on after each restart |