From f0e55ece0852dafdb44fb12f56fab37a92e37d93 Mon Sep 17 00:00:00 2001 From: Espen Hovlandsdal Date: Thu, 27 Jun 2019 12:19:30 +0200 Subject: [PATCH] [cli] Ignore missing worker_threads module when building --- packages/@sanity/cli/scripts/pack.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/@sanity/cli/scripts/pack.js b/packages/@sanity/cli/scripts/pack.js index f3e73eb11a0..7eb853ba2c5 100644 --- a/packages/@sanity/cli/scripts/pack.js +++ b/packages/@sanity/cli/scripts/pack.js @@ -85,7 +85,11 @@ compiler.run((err, stats) => { } const filtered = stats.compilation.warnings.filter(warn => { - return !warn.origin || warn.origin.userRequest.indexOf('spawn-sync.js') === -1 + return ( + !warn.origin || + (warn.origin.userRequest.indexOf('spawn-sync.js') === -1 && + warn.origin.userRequest.indexOf('write-file-atomic') === -1) + ) }) if (filtered.length > 0) {