1
1
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:
Brent Jackson 2019-02-18 16:51:47 -05:00 committed by GitHub
commit 203114d1fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
})
})