From 7a231be1a8a0ff589eb182d02df6873476c1903b Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa Date: Fri, 26 Sep 2025 11:26:45 +0900 Subject: [PATCH] chore(rsc): fix typo --- packages/plugin-rsc/src/transforms/hoist.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/plugin-rsc/src/transforms/hoist.ts b/packages/plugin-rsc/src/transforms/hoist.ts index 21c760ca..7fcd0432 100644 --- a/packages/plugin-rsc/src/transforms/hoist.ts +++ b/packages/plugin-rsc/src/transforms/hoist.ts @@ -157,15 +157,15 @@ function matchDirective( body: Program['body'], directive: RegExp, ): { match: RegExpMatchArray; node: Literal } | undefined { - for (const stable of body) { + for (const stmt of body) { if ( - stable.type === 'ExpressionStatement' && - stable.expression.type === 'Literal' && - typeof stable.expression.value === 'string' + stmt.type === 'ExpressionStatement' && + stmt.expression.type === 'Literal' && + typeof stmt.expression.value === 'string' ) { - const match = stable.expression.value.match(directive) + const match = stmt.expression.value.match(directive) if (match) { - return { match, node: stable.expression } + return { match, node: stmt.expression } } } }