Unverified Commit b46b1e11 authored by Joseph's avatar Joseph Committed by GitHub

Drop react-dev-overlay from production bundle (#68197)

parent eedbfa1f
...@@ -29,7 +29,6 @@ import { ...@@ -29,7 +29,6 @@ import {
import { callServer } from '../../app-call-server' import { callServer } from '../../app-call-server'
import { PrefetchKind } from './router-reducer-types' import { PrefetchKind } from './router-reducer-types'
import { hexHash } from '../../../shared/lib/hash' import { hexHash } from '../../../shared/lib/hash'
import { waitForWebpackRuntimeHotUpdate } from '../react-dev-overlay/app/hot-reloader-client'
export interface FetchServerResponseOptions { export interface FetchServerResponseOptions {
readonly flightRouterState: FlightRouterState readonly flightRouterState: FlightRouterState
...@@ -191,7 +190,7 @@ export async function fetchServerResponse( ...@@ -191,7 +190,7 @@ export async function fetchServerResponse(
// In dev, the Webpack runtime is minimal for each page. // 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. // 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) { 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`. // Handle the `fetch` readable stream that can be unwrapped by `React.use`.
......
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