@@ -44,32 +44,34 @@ Vue.prototype.$mount = function (
44
44
45
45
// devtools global hook
46
46
/* istanbul ignore next */
47
- Vue . nextTick ( ( ) => {
48
- if ( config . devtools ) {
49
- if ( devtools ) {
50
- devtools . emit ( 'init' , Vue )
51
- } else if (
52
- process . env . NODE_ENV !== 'production' &&
47
+ if ( inBrowser ) {
48
+ setTimeout ( ( ) => {
49
+ if ( config . devtools ) {
50
+ if ( devtools ) {
51
+ devtools . emit ( 'init' , Vue )
52
+ } else if (
53
+ process . env . NODE_ENV !== 'production' &&
54
+ process . env . NODE_ENV !== 'test' &&
55
+ isChrome
56
+ ) {
57
+ console [ console . info ? 'info' : 'log' ] (
58
+ 'Download the Vue Devtools extension for a better development experience:\n' +
59
+ 'https://github.com/vuejs/vue-devtools'
60
+ )
61
+ }
62
+ }
63
+ if ( process . env . NODE_ENV !== 'production' &&
53
64
process . env . NODE_ENV !== 'test' &&
54
- isChrome
65
+ config . productionTip !== false &&
66
+ typeof console !== 'undefined'
55
67
) {
56
68
console [ console . info ? 'info' : 'log' ] (
57
- 'Download the Vue Devtools extension for a better development experience:\n' +
58
- 'https://github.com/vuejs/vue-devtools'
69
+ `You are running Vue in development mode.\n` +
70
+ `Make sure to turn on production mode when deploying for production.\n` +
71
+ `See more tips at https://vuejs.org/guide/deployment.html`
59
72
)
60
73
}
61
- }
62
- if ( process . env . NODE_ENV !== 'production' &&
63
- process . env . NODE_ENV !== 'test' &&
64
- config . productionTip !== false &&
65
- inBrowser && typeof console !== 'undefined'
66
- ) {
67
- console [ console . info ? 'info' : 'log' ] (
68
- `You are running Vue in development mode.\n` +
69
- `Make sure to turn on production mode when deploying for production.\n` +
70
- `See more tips at https://vuejs.org/guide/deployment.html`
71
- )
72
- }
73
- } , 0 )
74
+ } , 0 )
75
+ }
74
76
75
77
export default Vue
0 commit comments