File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
packages/next/src/client/components/router-reducer Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ import {
29
29
import { callServer } from '../../app-call-server'
30
30
import { PrefetchKind } from './router-reducer-types'
31
31
import { hexHash } from '../../../shared/lib/hash'
32
- import { waitForWebpackRuntimeHotUpdate } from '../react-dev-overlay/app/hot-reloader-client'
33
32
34
33
export interface FetchServerResponseOptions {
35
34
readonly flightRouterState : FlightRouterState
@@ -191,7 +190,7 @@ export async function fetchServerResponse(
191
190
// In dev, the Webpack runtime is minimal for each page.
192
191
// We need to ensure the Webpack runtime is updated before executing client-side JS of the new page.
193
192
if ( process . env . NODE_ENV !== 'production' && ! process . env . TURBOPACK ) {
194
- await waitForWebpackRuntimeHotUpdate ( )
193
+ await require ( '../react-dev-overlay/app/hot-reloader-client' ) . waitForWebpackRuntimeHotUpdate ( )
195
194
}
196
195
197
196
// Handle the `fetch` readable stream that can be unwrapped by `React.use`.
You can’t perform that action at this time.
0 commit comments