From: Evan You Date: Fri, 6 Nov 2020 20:07:35 +0000 (-0500) Subject: chore: only log prod tip in non-bundler builds X-Git-Tag: v3.0.3~59 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a3b964a1bc2125eadaf7da0d131bd489c1fa1df;p=thirdparty%2Fvuejs%2Fcore.git chore: only log prod tip in non-bundler builds --- diff --git a/packages/vue/src/dev.ts b/packages/vue/src/dev.ts index 4f26d0e3fd..d980d20a48 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() }