Skip to content

Commit 9ccdd98

Browse files
committed
Remove ReactDOM.version workaround for react-server condition
The workaround is not needed anymore because of facebook/react#29596.
1 parent 651fed2 commit 9ccdd98

File tree

1 file changed

+0
-8
lines changed
  • packages/next/src/server/route-modules/app-page/vendored/rsc

1 file changed

+0
-8
lines changed

packages/next/src/server/route-modules/app-page/vendored/rsc/entrypoints.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,6 @@ if (process.env.TURBOPACK) {
6969
}
7070
}
7171

72-
if (ReactDOM.version === undefined) {
73-
// FIXME: ReactDOM's 'react-server' entrypoint is missing `.version`,
74-
// which makes our tests fail when it's used, so this is an ugly workaround
75-
// (but should be safe because these are always kept in sync anyway)
76-
// @ts-expect-error
77-
ReactDOM.version = React.version
78-
}
79-
8072
export {
8173
React,
8274
ReactJsxDevRuntime,

0 commit comments

Comments
 (0)