mirror of
https://github.com/youzan/vant.git
synced 2025-10-16 16:04:04 +00:00
fix(cli): failed to throw error (#7783)
* fix(cli): failed to throw error * fix: stat
This commit is contained in:
@@ -7,7 +7,7 @@ export async function compilePackage(isMinify: boolean) {
|
|||||||
|
|
||||||
webpack(config, (err, stats) => {
|
webpack(config, (err, stats) => {
|
||||||
if (err || stats.hasErrors()) {
|
if (err || stats.hasErrors()) {
|
||||||
reject();
|
reject(err || stats.toString());
|
||||||
} else {
|
} else {
|
||||||
resolve();
|
resolve();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user