File tree 5 files changed +2
-13
lines changed
server/future/route-modules/app-page/vendored/ssr
next-swc/crates/next-core/src 5 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -733,10 +733,6 @@ async fn rsc_aliases(
733
733
alias[ "react" ] = format ! ( "next/dist/compiled/react{react_channel}/react.react-server" ) ;
734
734
alias[ "react-dom" ] =
735
735
format ! ( "next/dist/compiled/react-dom{react_channel}/react-dom.react-server" ) ;
736
- } else {
737
- // x-ref: https://github.com/facebook/react/pull/25436
738
- alias[ "react-dom" ] =
739
- format ! ( "next/dist/compiled/react-dom{react_channel}/server-rendering-stub" ) ;
740
736
}
741
737
}
742
738
Original file line number Diff line number Diff line change @@ -296,11 +296,6 @@ export function createRSCAliases(
296
296
alias [
297
297
'react-dom$'
298
298
] = `next/dist/compiled/react-dom${ bundledReactChannel } /react-dom.react-server`
299
- } else {
300
- // x-ref: https://github.com/facebook/react/pull/25436
301
- alias [
302
- 'react-dom$'
303
- ] = `next/dist/compiled/react-dom${ bundledReactChannel } /server-rendering-stub`
304
299
}
305
300
}
306
301
Original file line number Diff line number Diff line change 1
1
import * as React from 'react'
2
- import * as ReactDOM from 'react-dom/server-rendering-stub '
2
+ import * as ReactDOM from 'react-dom'
3
3
import * as ReactJsxDevRuntime from 'react/jsx-dev-runtime'
4
4
import * as ReactJsxRuntime from 'react/jsx-runtime'
5
5
Original file line number Diff line number Diff line change 1
- declare module 'react-dom/server-rendering-stub'
2
1
declare module 'react-dom/server.browser'
3
2
4
3
declare module 'react-dom/server.edge' {
Original file line number Diff line number Diff line change @@ -33,8 +33,7 @@ function makeAppAliases(reactChannel = '') {
33
33
return {
34
34
react$ : `next/dist/compiled/react${ reactChannel } ` ,
35
35
'react/react.react-server$' : `next/dist/compiled/react${ reactChannel } /react.react-server` ,
36
- 'react-dom/server-rendering-stub$' : `next/dist/compiled/react-dom${ reactChannel } /server-rendering-stub` ,
37
- 'react-dom$' : `next/dist/compiled/react-dom${ reactChannel } /server-rendering-stub` ,
36
+ 'react-dom$' : `next/dist/compiled/react-dom${ reactChannel } ` ,
38
37
'react/jsx-runtime$' : `next/dist/compiled/react${ reactChannel } /jsx-runtime` ,
39
38
'react/jsx-dev-runtime$' : `next/dist/compiled/react${ reactChannel } /jsx-dev-runtime` ,
40
39
'react-dom/client$' : `next/dist/compiled/react-dom${ reactChannel } /client` ,
You can’t perform that action at this time.
0 commit comments