From cccdb42fbd5f23384058d4d374f0b655a56606f0 Mon Sep 17 00:00:00 2001 From: Josh Thomas Date: Tue, 17 Apr 2018 13:53:07 -0500 Subject: [PATCH] chore(): change usage of Build.isDev so that buble does not act out. --- core/src/components/nav/nav.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/components/nav/nav.tsx b/core/src/components/nav/nav.tsx index 9151be2a39..0536c29cbd 100644 --- a/core/src/components/nav/nav.tsx +++ b/core/src/components/nav/nav.tsx @@ -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(' does not support a root attribute when using ion-router.'); } }