pub fn snoop_wasm_build(dir: PathBuf, opts: SnoopWasmOpts) -> Result<i32, ExecutionError> {
    let target = dir.join(".perseus");
    run_cmd_directly(
        format!(
            "{} build --target web {}",
            env::var("PERSEUS_WASM_PACK_PATH").unwrap_or_else(|_| "wasm-pack".to_string()),
            if opts.profiling {
                "--profiling"
            } else {
                "--dev"
            }
        ),
        &target,
    )
}
/// Runs the commands to build the user's app to Wasm directly so they can see detailed logs.
Runs the commands to build the user's app to Wasm directly so they can see detailed logs.
Runs the commands to build the user ' s app to Wasm directly so they can see detailed logs .
pub fn snoop_wasm_build(dir: PathBuf, opts: SnoopWasmOpts) -> Result<i32, ExecutionError> {
    let target = dir.join(".perseus");
    run_cmd_directly(
        format!(
            "{} build --target web {}",
            env::var("PERSEUS_WASM_PACK_PATH").unwrap_or_else(|_| "wasm-pack".to_string()),
            if opts.profiling {
                "--profiling"
            } else {
                "--dev"
            }
        ),
        &target,
    )
}
pub fn snoop_wasm_build ( dir : PathBuf , opts : SnoopWasmOpts ) -> Result < i32 , ExecutionError > { let target = dir . join ( " " ) ; run_cmd_directly ( format ! ( " " env var ( " " ) unwrap_or_else ( " " to_string ( ) ) if opts profiling { " " } else { " " } ) , & target , ) }
Runs the commands to build the user's app to Wasm directly so they can see detailed logs.
Runs the commands to build the user ' s app to Wasm directly so they can see detailed logs .
dir
PathBuf
opts
SnoopWasmOpts
dir
PathBuf
opts
SnoopWasmOpts