File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
packages/runtime-core/src Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import {
1212import {
1313 ComponentPublicInstance ,
1414 PublicInstanceProxyHandlers ,
15- createRenderContext ,
15+ createDevRenderContext ,
1616 exposePropsOnRenderContext ,
1717 exposeSetupStateOnRenderContext ,
1818 ComponentPublicInstanceConstructor ,
@@ -521,7 +521,7 @@ export function createComponentInstance(
521521 sp : null
522522 }
523523 if ( __DEV__ ) {
524- instance . ctx = createRenderContext ( instance )
524+ instance . ctx = createDevRenderContext ( instance )
525525 } else {
526526 instance . ctx = { _ : instance }
527527 }
Original file line number Diff line number Diff line change @@ -484,10 +484,11 @@ export const RuntimeCompiledPublicInstanceProxyHandlers = /*#__PURE__*/ extend(
484484 }
485485)
486486
487+ // dev only
487488// In dev mode, the proxy target exposes the same properties as seen on `this`
488489// for easier console inspection. In prod mode it will be an empty object so
489490// these properties definitions can be skipped.
490- export function createRenderContext ( instance : ComponentInternalInstance ) {
491+ export function createDevRenderContext ( instance : ComponentInternalInstance ) {
491492 const target : Record < string , any > = { }
492493
493494 // expose internal instance for proxy handlers
You can’t perform that action at this time.
0 commit comments