Skip to content

Commit

Permalink
RSC: RSA: Remove unused check for '$$id' (#11159)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Aug 6, 2024
1 parent aa99976 commit 5dea4a7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/vite/src/plugins/vite-plugin-rsc-transform-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ export function rscTransformUseServerPlugin(): Plugin {
return code
}

// TODO (RSC): Bad bad hack. Don't do this.
// At least look for something that's guaranteed to be only present in
// transformed modules
// Ideally don't even try to transform twice
if (code.includes('$$id')) {
// Already transformed
return code
}

let body: Program['body']

try {
Expand Down

0 comments on commit 5dea4a7

Please sign in to comment.