Commit 99a39cf3 authored by Jimmy Lai's avatar Jimmy Lai

fix: remove stale chainNodeStreams export from entry-base

parent 65c92df7
...@@ -40,19 +40,6 @@ if (process.env.__NEXT_USE_NODE_STREAMS) { ...@@ -40,19 +40,6 @@ if (process.env.__NEXT_USE_NODE_STREAMS) {
} }
/* eslint-enable import/no-extraneous-dependencies */ /* eslint-enable import/no-extraneous-dependencies */
// chainNodeStreams is used by the app-page.ts build template for PPR resume.
// We export it from here (pre-compiled runtime bundle) because the template
// cannot use relative requires (webpack resolves them from the project root).
export let chainNodeStreams:
| typeof import('../stream-utils/node-stream-helpers').chainNodeStreams
| undefined
if (process.env.__NEXT_USE_NODE_STREAMS) {
chainNodeStreams = (
require('../stream-utils/node-stream-helpers') as typeof import('../stream-utils/node-stream-helpers')
).chainNodeStreams
} else {
chainNodeStreams = undefined
}
// TODO: Just re-export `* as ReactServer` // TODO: Just re-export `* as ReactServer`
export { captureOwnerStack, createElement, Fragment } from 'react' export { captureOwnerStack, createElement, Fragment } from 'react'
......
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