File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/plugin-rsc/src/transforms Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -157,15 +157,15 @@ function matchDirective(
157157 body : Program [ 'body' ] ,
158158 directive : RegExp ,
159159) : { match : RegExpMatchArray ; node : Literal } | undefined {
160- for ( const stable of body ) {
160+ for ( const stmt of body ) {
161161 if (
162- stable . type === 'ExpressionStatement' &&
163- stable . expression . type === 'Literal' &&
164- typeof stable . expression . value === 'string'
162+ stmt . type === 'ExpressionStatement' &&
163+ stmt . expression . type === 'Literal' &&
164+ typeof stmt . expression . value === 'string'
165165 ) {
166- const match = stable . expression . value . match ( directive )
166+ const match = stmt . expression . value . match ( directive )
167167 if ( match ) {
168- return { match, node : stable . expression }
168+ return { match, node : stmt . expression }
169169 }
170170 }
171171 }
You can’t perform that action at this time.
0 commit comments