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

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();
}