Skip to content

Commit cc77583

Browse files
authored
refactor(rsc): simplify proxy get access (#1002)
1 parent afec26e commit cc77583

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)