Skip to content

Commit

Permalink
RSC: Support CJS 'use client' modules (#10683)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed May 24, 2024
1 parent e38001b commit 5f7450f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/vite/src/plugins/vite-plugin-rsc-transform-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,16 +262,12 @@ async function transformClientModule(
([_key, value]) => value === url,
)

console.log('entryRecord', entryRecord)

const loadId = normalizePath(
entryRecord
? path.join(getPaths().web.distRsc, 'assets', `${entryRecord[0]}.mjs`)
: url,
)

console.log('loadId', loadId)

let newSrc =
"const CLIENT_REFERENCE = Symbol.for('react.client.reference');\n"

Expand Down

0 comments on commit 5f7450f

Please sign in to comment.