mirror of
https://github.com/jxnblk/mdx-deck.git
synced 2024-11-10 14:21:06 +03:00
Merge pull request #252 from jesstelford/patch-4
Surface compilation errors from webpack
This commit is contained in:
commit
203114d1fe
@ -30,6 +30,12 @@ const build = async (opts = {}) => {
|
||||
reject(err)
|
||||
return
|
||||
}
|
||||
|
||||
if (stats.compilation.errors && stats.compilation.errors.length) {
|
||||
reject(stats.compilation.errors);
|
||||
return;
|
||||
}
|
||||
|
||||
resolve(stats)
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user