Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit ab8f7b5

Browse files
committed
chore(compiler): improve core logging
1 parent 4359b3d commit ab8f7b5

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/core/bundle-components.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ export function bundleCoreComponents(context: BuildContext) {
2828
rollup: rollup,
2929
typescript: typescript,
3030
uglify: uglify
31-
}
31+
},
32+
watch: context.isWatch
3233
};
3334

3435
return compiler.bundle(config).then(results => {
@@ -43,7 +44,15 @@ export function bundleCoreComponents(context: BuildContext) {
4344
context.ionicGlobal['components'] = results.componentRegistry;
4445
}
4546
}).catch(err => {
46-
Logger.error(`compiler.bundle: ${err}`);
47+
if (err) {
48+
if (err.stack) {
49+
Logger.error(`compiler.bundle: ${err.stack}`);
50+
} else {
51+
Logger.error(`compiler.bundle: ${err}`);
52+
}
53+
} else {
54+
Logger.error(`compiler.bundle error`);
55+
}
4756
});
4857
}
4958

0 commit comments

Comments
 (0)