Skip to content

Commit 2c8eff5

Browse files
committed
fix(rsc): simplify proxy get access
1 parent afec26e commit 2c8eff5

File tree

1 file changed

+0
-5
lines changed
  • packages/plugin-rsc/src/core

1 file changed

+0
-5
lines changed

packages/plugin-rsc/src/core/rsc.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ export function setRequireModule(options: {
4747
))
4848
}
4949
return new Proxy(target, {
50-
get(_target, name, _receiver) {
51-
// not thennable
52-
if (typeof name !== 'string' || name === 'then') return
53-
return getOrCreateClientReference(name)
54-
},
5550
// React 19.2.1+ uses hasOwnProperty.call() to check for exports
5651
// https://github.com/facebook/react/pull/35277
5752
getOwnPropertyDescriptor(_target, name) {

0 commit comments

Comments
 (0)