Skip to content

Commit

Permalink
Remove redundant react-dom/server.browser shim
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Aug 16, 2024
1 parent 72c73a0 commit 5f20cf2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 34 deletions.
3 changes: 1 addition & 2 deletions packages/next/src/build/create-compiler-aliases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,8 @@ export function createRSCAliases(
'react-dom/static$': `next/dist/compiled/react-dom${bundledReactChannel}/static`,
'react-dom/static.edge$': `next/dist/compiled/react-dom${bundledReactChannel}/static.edge`,
'react-dom/static.browser$': `next/dist/compiled/react-dom${bundledReactChannel}/static.browser`,
// optimizations to ignore the legacy build of react-dom/server in `server.browser` build
// optimizations to ignore the legacy build of react-dom/server in `server.edge` build
'react-dom/server.edge$': `next/dist/build/webpack/alias/react-dom-server-edge${bundledReactChannel}.js`,
'react-dom/server.browser$': `next/dist/build/webpack/alias/react-dom-server-browser${bundledReactChannel}.js`,
// react-server-dom-webpack alias
...createRSCRendererAliases(bundledReactChannel),
}
Expand Down

This file was deleted.

16 changes: 0 additions & 16 deletions packages/next/src/build/webpack/alias/react-dom-server-browser.js

This file was deleted.

0 comments on commit 5f20cf2

Please sign in to comment.