File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
packages/weex-vue-framework Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -4236,7 +4236,7 @@ function mountComponent (
4236
4236
4237
4237
var updateComponent ;
4238
4238
/* istanbul ignore if */
4239
- if ( process . env . NODE_ENV !== 'production' && config . performance && mark ) {
4239
+ if ( config . performance && mark ) {
4240
4240
updateComponent = function ( ) {
4241
4241
var name = vm . _name ;
4242
4242
var id = vm . _uid ;
@@ -5161,7 +5161,7 @@ function initMixin (Vue) {
5161
5161
5162
5162
var startTag , endTag ;
5163
5163
/* istanbul ignore if */
5164
- if ( process . env . NODE_ENV !== 'production' && config . performance && mark ) {
5164
+ if ( config . performance && mark ) {
5165
5165
startTag = "vue-perf-start:" + ( vm . _uid ) ;
5166
5166
endTag = "vue-perf-end:" + ( vm . _uid ) ;
5167
5167
mark ( startTag ) ;
@@ -5200,7 +5200,7 @@ function initMixin (Vue) {
5200
5200
callHook ( vm , 'created' ) ;
5201
5201
5202
5202
/* istanbul ignore if */
5203
- if ( process . env . NODE_ENV !== 'production' && config . performance && mark ) {
5203
+ if ( config . performance && mark ) {
5204
5204
vm . _name = formatComponentName ( vm , false ) ;
5205
5205
mark ( endTag ) ;
5206
5206
measure ( ( "vue " + ( vm . _name ) + " init" ) , startTag , endTag ) ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export function initMixin (Vue: Class<Component>) {
20
20
21
21
let startTag , endTag
22
22
/* istanbul ignore if */
23
- if ( process . env . NODE_ENV !== 'production' && config . performance && mark ) {
23
+ if ( config . performance && mark ) {
24
24
startTag = `vue-perf-start:${ vm . _uid } `
25
25
endTag = `vue-perf-end:${ vm . _uid } `
26
26
mark ( startTag )
@@ -59,7 +59,7 @@ export function initMixin (Vue: Class<Component>) {
59
59
callHook ( vm , 'created' )
60
60
61
61
/* istanbul ignore if */
62
- if ( process . env . NODE_ENV !== 'production' && config . performance && mark ) {
62
+ if ( config . performance && mark ) {
63
63
vm . _name = formatComponentName ( vm , false )
64
64
mark ( endTag )
65
65
measure ( `vue ${ vm . _name } init` , startTag , endTag )
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ export function mountComponent (
168
168
169
169
let updateComponent
170
170
/* istanbul ignore if */
171
- if ( process . env . NODE_ENV !== 'production' && config . performance && mark ) {
171
+ if ( config . performance && mark ) {
172
172
updateComponent = ( ) => {
173
173
const name = vm . _name
174
174
const id = vm . _uid
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ Vue.prototype.$mount = function (
58
58
}
59
59
if ( template ) {
60
60
/* istanbul ignore if */
61
- if ( process . env . NODE_ENV !== 'production' && config . performance && mark ) {
61
+ if ( config . performance && mark ) {
62
62
mark ( 'compile' )
63
63
}
64
64
@@ -73,7 +73,7 @@ Vue.prototype.$mount = function (
73
73
options . staticRenderFns = staticRenderFns
74
74
75
75
/* istanbul ignore if */
76
- if ( process . env . NODE_ENV !== 'production' && config . performance && mark ) {
76
+ if ( config . performance && mark ) {
77
77
mark ( 'compile end' )
78
78
measure ( `vue ${ this . _name } compile` , 'compile' , 'compile end' )
79
79
}
You can’t perform that action at this time.
0 commit comments