]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: only log prod tip in non-bundler builds
authorEvan You <yyx990803@gmail.com>
Fri, 6 Nov 2020 20:07:35 +0000 (15:07 -0500)
committerEvan You <yyx990803@gmail.com>
Fri, 6 Nov 2020 20:07:35 +0000 (15:07 -0500)
packages/vue/src/dev.ts

index 4f26d0e3fdfd8398b50aaad4ef3da4c1ba06b0b1..d980d20a48b1c08f640c88931f2d14b7656d09de 100644 (file)
@@ -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()
   }