File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -85,21 +85,21 @@ export class TransformContext<
8585 root : TransformContext < RootNode >
8686 index : number = 0
8787
88- block : BlockIRNode = this . ir . block
88+ block : BlockIRNode
8989 options : Required <
9090 Omit < TransformOptions , 'filename' | keyof CompilerCompatOptions >
9191 >
9292
9393 template : string = ''
9494 childrenTemplate : ( string | null ) [ ] = [ ]
95- dynamic : IRDynamicInfo = this . ir . block . dynamic
95+ dynamic : IRDynamicInfo
9696
9797 inVOnce : boolean = false
9898 inVFor : number = 0
9999
100100 comment : CommentNode [ ] = [ ]
101- component : Set < string > = this . ir . component
102- directive : Set < string > = this . ir . directive
101+ component : Set < string >
102+ directive : Set < string >
103103
104104 slots : IRSlots [ ] = [ ]
105105
@@ -111,6 +111,10 @@ export class TransformContext<
111111 options : TransformOptions = { } ,
112112 ) {
113113 this . options = extend ( { } , defaultOptions , options )
114+ this . block = this . ir . block
115+ this . dynamic = this . ir . block . dynamic
116+ this . component = this . ir . component
117+ this . directive = this . ir . directive
114118 this . root = this as TransformContext < RootNode >
115119 }
116120
You can’t perform that action at this time.
0 commit comments