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(
157
157
body : Program [ 'body' ] ,
158
158
directive : RegExp ,
159
159
) : { match : RegExpMatchArray ; node : Literal } | undefined {
160
- for ( const stable of body ) {
160
+ for ( const stmt of body ) {
161
161
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'
165
165
) {
166
- const match = stable . expression . value . match ( directive )
166
+ const match = stmt . expression . value . match ( directive )
167
167
if ( match ) {
168
- return { match, node : stable . expression }
168
+ return { match, node : stmt . expression }
169
169
}
170
170
}
171
171
}
You can’t perform that action at this time.
0 commit comments