diff --git a/packages/vite/src/plugins/vite-plugin-rsc-transform-server.ts b/packages/vite/src/plugins/vite-plugin-rsc-transform-server.ts index de2c01848e3e..65dd7fab61e1 100644 --- a/packages/vite/src/plugins/vite-plugin-rsc-transform-server.ts +++ b/packages/vite/src/plugins/vite-plugin-rsc-transform-server.ts @@ -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 {