File tree Expand file tree Collapse file tree 5 files changed +2
-13
lines changed
next-swc/crates/next-core/src
server/future/route-modules/app-page/vendored/ssr Expand file tree Collapse file tree 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(
733733 alias[ "react" ] = format ! ( "next/dist/compiled/react{react_channel}/react.react-server" ) ;
734734 alias[ "react-dom" ] =
735735 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" ) ;
740736 }
741737 }
742738
Original file line number Diff line number Diff line change @@ -296,11 +296,6 @@ export function createRSCAliases(
296296 alias [
297297 'react-dom$'
298298 ] = `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`
304299 }
305300 }
306301
Original file line number Diff line number Diff line change 11import * as React from 'react'
2- import * as ReactDOM from 'react-dom/server-rendering-stub '
2+ import * as ReactDOM from 'react-dom'
33import * as ReactJsxDevRuntime from 'react/jsx-dev-runtime'
44import * as ReactJsxRuntime from 'react/jsx-runtime'
55
Original file line number Diff line number Diff line change 1- declare module 'react-dom/server-rendering-stub'
21declare module 'react-dom/server.browser'
32
43declare module 'react-dom/server.edge' {
Original file line number Diff line number Diff line change @@ -33,8 +33,7 @@ function makeAppAliases(reactChannel = '') {
3333 return {
3434 react$ : `next/dist/compiled/react${ reactChannel } ` ,
3535 '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 } ` ,
3837 'react/jsx-runtime$' : `next/dist/compiled/react${ reactChannel } /jsx-runtime` ,
3938 'react/jsx-dev-runtime$' : `next/dist/compiled/react${ reactChannel } /jsx-dev-runtime` ,
4039 'react-dom/client$' : `next/dist/compiled/react-dom${ reactChannel } /client` ,
You can’t perform that action at this time.
0 commit comments