File tree 2 files changed +4
-3
lines changed
packages/runtime-core/src
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import {
12
12
import {
13
13
ComponentPublicInstance ,
14
14
PublicInstanceProxyHandlers ,
15
- createRenderContext ,
15
+ createDevRenderContext ,
16
16
exposePropsOnRenderContext ,
17
17
exposeSetupStateOnRenderContext ,
18
18
ComponentPublicInstanceConstructor ,
@@ -521,7 +521,7 @@ export function createComponentInstance(
521
521
sp : null
522
522
}
523
523
if ( __DEV__ ) {
524
- instance . ctx = createRenderContext ( instance )
524
+ instance . ctx = createDevRenderContext ( instance )
525
525
} else {
526
526
instance . ctx = { _ : instance }
527
527
}
Original file line number Diff line number Diff line change @@ -484,10 +484,11 @@ export const RuntimeCompiledPublicInstanceProxyHandlers = /*#__PURE__*/ extend(
484
484
}
485
485
)
486
486
487
+ // dev only
487
488
// In dev mode, the proxy target exposes the same properties as seen on `this`
488
489
// for easier console inspection. In prod mode it will be an empty object so
489
490
// these properties definitions can be skipped.
490
- export function createRenderContext ( instance : ComponentInternalInstance ) {
491
+ export function createDevRenderContext ( instance : ComponentInternalInstance ) {
491
492
const target : Record < string , any > = { }
492
493
493
494
// expose internal instance for proxy handlers
You can’t perform that action at this time.
0 commit comments