-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove inProcess option as it's not used
- Loading branch information
1 parent
48dc4d6
commit ab36b11
Showing
3 changed files
with
7 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,7 @@ | ||
use std::{path::PathBuf, thread}; | ||
|
||
use napi::JsBoolean; | ||
use std::path::PathBuf; | ||
|
||
#[napi] | ||
pub fn start_turbopack_trace_server(path: String, in_process: JsBoolean) -> napi::Result<String> { | ||
pub fn start_turbopack_trace_server(path: String) { | ||
let path_buf = PathBuf::from(path); | ||
if in_process.get_value()? { | ||
turbopack_binding::turbopack::trace_server::start_turbopack_trace_server(path_buf); | ||
} else { | ||
thread::spawn(move || { | ||
turbopack_binding::turbopack::trace_server::start_turbopack_trace_server(path_buf); | ||
}); | ||
} | ||
|
||
Ok("".to_string()) | ||
turbopack_binding::turbopack::trace_server::start_turbopack_trace_server(path_buf); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters