interface OutputProcess {
    action: (
        stdout: Writable,
        stderr: Writable,
        signal: AbortSignal,
    ) => Promise<void>;
    prefix: string;
}

Properties

Properties

action: (
    stdout: Writable,
    stderr: Writable,
    signal: AbortSignal,
) => Promise<void>

A callback to invoke the process. Stdout and stderr should be used to send standard output and error data that gets formatted with the right prefix.

prefix: string

The prefix to include in the logs [vite] Output coming from Vite.