Skip to content

Commit

Permalink
Drop react-dev-overlay from production bundle (#68197)
Browse files Browse the repository at this point in the history
  • Loading branch information
icyJoseph authored Jul 30, 2024
1 parent eedbfa1 commit b46b1e1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import {
import { callServer } from '../../app-call-server'
import { PrefetchKind } from './router-reducer-types'
import { hexHash } from '../../../shared/lib/hash'
import { waitForWebpackRuntimeHotUpdate } from '../react-dev-overlay/app/hot-reloader-client'

export interface FetchServerResponseOptions {
readonly flightRouterState: FlightRouterState
Expand Down Expand Up @@ -191,7 +190,7 @@ export async function fetchServerResponse(
// In dev, the Webpack runtime is minimal for each page.
// We need to ensure the Webpack runtime is updated before executing client-side JS of the new page.
if (process.env.NODE_ENV !== 'production' && !process.env.TURBOPACK) {
await waitForWebpackRuntimeHotUpdate()
await require('../react-dev-overlay/app/hot-reloader-client').waitForWebpackRuntimeHotUpdate()
}

// Handle the `fetch` readable stream that can be unwrapped by `React.use`.
Expand Down

0 comments on commit b46b1e1

Please sign in to comment.