Skip to content

Commit

Permalink
Remove ReactDOM.version workaround for react-server condition
Browse files Browse the repository at this point in the history
The workaround is not needed anymore because of facebook/react#29596.
  • Loading branch information
unstubbable authored and eps1lon committed Jun 10, 2024
1 parent e8337f3 commit 254a06f
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,6 @@ if (process.env.TURBOPACK) {
}
}

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

export {
React,
ReactJsxDevRuntime,
Expand Down

0 comments on commit 254a06f

Please sign in to comment.