chore: only log prod tip in non-bundler builds

This commit is contained in:
Evan You 2020-11-06 15:07:35 -05:00
parent 43579a8de3
commit 7a3b964a1b

View File

@ -8,10 +8,12 @@ export function initDev() {
setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__) setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__)
if (__BROWSER__) { if (__BROWSER__) {
if (!__ESM_BUNDLER__) {
console.info( console.info(
`You are running a development build of Vue.\n` + `You are running a development build of Vue.\n` +
`Make sure to use the production build (*.prod.js) when deploying for production.` `Make sure to use the production build (*.prod.js) when deploying for production.`
) )
}
initCustomFormatter() initCustomFormatter()
} }