From 7a3b964a1bc2125eadaf7da0d131bd489c1fa1df Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 6 Nov 2020 15:07:35 -0500 Subject: [PATCH] chore: only log prod tip in non-bundler builds --- packages/vue/src/dev.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/vue/src/dev.ts b/packages/vue/src/dev.ts index 4f26d0e3..d980d20a 100644 --- a/packages/vue/src/dev.ts +++ b/packages/vue/src/dev.ts @@ -8,10 +8,12 @@ export function initDev() { setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__) if (__BROWSER__) { - console.info( - `You are running a development build of Vue.\n` + - `Make sure to use the production build (*.prod.js) when deploying for production.` - ) + if (!__ESM_BUNDLER__) { + console.info( + `You are running a development build of Vue.\n` + + `Make sure to use the production build (*.prod.js) when deploying for production.` + ) + } initCustomFormatter() }