Don't send watch messages from build command.

This commit is contained in:
Dillon Kearns 2021-07-07 09:14:04 -07:00
parent 948e3ebbc7
commit 457aee7067

View File

@ -15,7 +15,9 @@ async function run({ mode, pathname }) {
pathname,
req,
function (patterns) {
parentPort.postMessage({ tag: "watch", data: [...patterns] });
if (mode === "dev-server") {
parentPort.postMessage({ tag: "watch", data: [...patterns] });
}
}
);