From cdd48318db79da253430b151e449406bfc83a961 Mon Sep 17 00:00:00 2001 From: neverland Date: Mon, 21 Dec 2020 16:28:32 +0800 Subject: [PATCH] fix(cli): failed to throw error (#7783) * fix(cli): failed to throw error * fix: stat --- packages/vant-cli/src/compiler/compile-package.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vant-cli/src/compiler/compile-package.ts b/packages/vant-cli/src/compiler/compile-package.ts index 1da7d1915..4d8d19e38 100644 --- a/packages/vant-cli/src/compiler/compile-package.ts +++ b/packages/vant-cli/src/compiler/compile-package.ts @@ -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(); }