Unverified Commit deb60c65 authored by Sebastian Silbermann's avatar Sebastian Silbermann Committed by GitHub

Restore optimization to ignore legacy APIs in react-dom/server (#66371)

parent 278b0ba4
...@@ -268,9 +268,9 @@ export function createRSCAliases( ...@@ -268,9 +268,9 @@ export function createRSCAliases(
'react-dom/static$': `next/dist/compiled/react-dom-experimental/static`, 'react-dom/static$': `next/dist/compiled/react-dom-experimental/static`,
'react-dom/static.edge$': `next/dist/compiled/react-dom-experimental/static.edge`, 'react-dom/static.edge$': `next/dist/compiled/react-dom-experimental/static.edge`,
'react-dom/static.browser$': `next/dist/compiled/react-dom-experimental/static.browser`, 'react-dom/static.browser$': `next/dist/compiled/react-dom-experimental/static.browser`,
// TODO: restore 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.browser` build
'react-dom/server.edge$': `next/dist/compiled/react-dom${bundledReactChannel}/server.edge`, 'react-dom/server.edge$': `next/dist/build/webpack/alias/react-dom-server-edge${bundledReactChannel}.js`,
'react-dom/server.browser$': `next/dist/compiled/react-dom${bundledReactChannel}/server.browser`, 'react-dom/server.browser$': `next/dist/build/webpack/alias/react-dom-server-browser${bundledReactChannel}.js`,
// react-server-dom-webpack alias // react-server-dom-webpack alias
...createRSCRendererAliases(bundledReactChannel), ...createRSCRendererAliases(bundledReactChannel),
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment