Skip to content

Commit

Permalink
fix(rsc): Remove unused Set in vite plugin (#11139)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Aug 1, 2024
1 parent 2d6173d commit 58fbb42
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/vite/src/plugins/vite-plugin-rsc-analyze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ export function rscAnalyzePlugin(
clientEntryCallback: (id: string) => void,
serverEntryCallback: (id: string) => void,
): Plugin {
const clientEntryIdSet = new Set<string>()

return {
name: 'redwood-rsc-analyze-plugin',
transform(code, id) {
Expand All @@ -27,7 +25,6 @@ export function rscAnalyzePlugin(
) {
if (item.expression.value === 'use client') {
clientEntryCallback(id)
clientEntryIdSet.add(id)
} else if (item.expression.value === 'use server') {
serverEntryCallback(id)
}
Expand Down

0 comments on commit 58fbb42

Please sign in to comment.