Skip to content

Commit

Permalink
[cli] Ignore missing worker_threads module when building (#1399)
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars authored and bjoerge committed Aug 13, 2019
1 parent 9a0111a commit 050f122
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/@sanity/cli/scripts/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 050f122

Please sign in to comment.