Skip to content

Commit b81470c

Browse files
authored
chore(rsc): fix typo (#885)
1 parent 5bc3f79 commit b81470c

File tree

1 file changed

+6
-6
lines changed
  • packages/plugin-rsc/src/transforms

1 file changed

+6
-6
lines changed

packages/plugin-rsc/src/transforms/hoist.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)