fix(cli): failed to throw error (#7783)

* fix(cli): failed to throw error

* fix: stat
This commit is contained in:
neverland 2020-12-21 16:28:32 +08:00 committed by GitHub
parent b4cb00ed97
commit cdd48318db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ export async function compilePackage(isMinify: boolean) {
webpack(config, (err, stats) => {
if (err || stats.hasErrors()) {
reject();
reject(err || stats.toString());
} else {
resolve();
}