Skip to content

Commit 6f4faaf

Browse files
committed
f5
1 parent c101acc commit 6f4faaf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/next/next-runtime.webpack-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ function makeAppAliases({ experimental, bundler }) {
4747
'react/jsx-dev-runtime$': `next/dist/compiled/react${reactChannel}/jsx-dev-runtime`,
4848
'react/compiler-runtime$': `next/dist/compiled/react${reactChannel}/compiler-runtime`,
4949
'react-dom/client$': `next/dist/compiled/react-dom${reactChannel}/client`,
50-
'react-dom/static$': `next/dist/compiled/react-dom${reactChannel}/static.node`,
5150
// optimizations to ignore the legacy APIs in react-dom/server
5251
'react-dom/server$': `next/dist/build/webpack/alias/react-dom-server${reactChannel}.js`,
52+
'react-dom/static$': `next/dist/compiled/react-dom${reactChannel}/static.node`,
5353
// react-server-dom-webpack alias
5454
'react-server-dom-turbopack/client$': `next/dist/compiled/react-server-dom-turbopack${reactChannel}/client.node`,
5555
'react-server-dom-turbopack/server$': `next/dist/compiled/react-server-dom-turbopack${reactChannel}/server.node`,

packages/next/src/build/create-compiler-aliases.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,11 @@ export function createRSCAliases(
285285
'react-dom/client$': `next/dist/compiled/react-dom${bundledReactChannel}/client`,
286286
'react-dom/server$': `next/dist/compiled/react-dom${bundledReactChannel}/server`,
287287
'react-dom/server.browser$': `next/dist/compiled/react-dom${bundledReactChannel}/server.browser`,
288-
'react-dom/static$': `next/dist/compiled/react-dom${bundledReactChannel}/static.edge`,
288+
'react-dom/static$': `next/dist/compiled/react-dom${bundledReactChannel}/static`,
289289
'react-dom/static.edge$': `next/dist/compiled/react-dom${bundledReactChannel}/static.edge`,
290290
'react-dom/static.node$': `next/dist/compiled/react-dom${bundledReactChannel}/static.node`,
291291
// TODO: Vendor react-dom/static.browser
292+
// optimizations to ignore the legacy build of react-dom/server in `server.edge` build
292293
'react-dom/server.edge$': `next/dist/build/webpack/alias/react-dom-server${bundledReactChannel}.js`,
293294
// react-server-dom-webpack alias
294295
'react-server-dom-webpack/client$': `next/dist/compiled/react-server-dom-webpack${bundledReactChannel}/client.browser`,

0 commit comments

Comments
 (0)