Commit 3c01bda 1 parent 6e49cda commit 3c01bda Copy full SHA for 3c01bda
File tree 2 files changed +4
-4
lines changed
examples/react-server-components
utils/node-resolver-core/src
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 23
23
"react-dom" : " ^19" ,
24
24
"react-server-dom-parcel" : " ^0.0.1" ,
25
25
"rsc-html-stream" : " ^0.0.4"
26
- },
27
- "@parcel/resolver-default" : {
28
- "packageExports" : true
29
26
}
30
27
}
Original file line number Diff line number Diff line change @@ -125,7 +125,10 @@ export default class NodeResolver {
125
125
options . env ,
126
126
this . options . mode ,
127
127
) ,
128
- packageExports : this . options . packageExports ?? false ,
128
+ packageExports :
129
+ this . options . packageExports ||
130
+ options . env . context === 'react-server' ||
131
+ options . env . context === 'react-client' ,
129
132
moduleDirResolver :
130
133
process . versions . pnp != null
131
134
? ( module , from ) => {
You can’t perform that action at this time.
0 commit comments