chore(): change usage of Build.isDev so that buble does not act out.

This commit is contained in:
Josh Thomas
2018-04-17 13:53:07 -05:00
parent 43d7538e66
commit cccdb42fbd

View File

@@ -48,10 +48,11 @@ export class Nav implements NavOutlet {
@Prop() root: NavComponent|undefined;
@Watch('root')
rootChanged() {
const isDev = Build.isDev;
if (this.root) {
if (!this.useRouter) {
this.setRoot(this.root, this.rootParams);
} else if (Build.isDev) {
} else if (isDev) {
console.warn('<ion-nav> does not support a root attribute when using ion-router.');
}
}