We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e2275a commit 46ef854Copy full SHA for 46ef854
packages/next/src/client/components/router-reducer/fetch-server-response.ts
@@ -160,7 +160,11 @@ export async function fetchServerResponse(
160
// In prod, every page will have the same Webpack runtime.
161
// In dev, the Webpack runtime is minimal for each page.
162
// We need to ensure the Webpack runtime is updated before executing client-side JS of the new page.
163
- if (process.env.NODE_ENV !== 'production' && isNavigation) {
+ if (
164
+ process.env.NODE_ENV !== 'production' &&
165
+ isNavigation &&
166
+ !process.env.TURBOPACK
167
+ ) {
168
await waitForWebpackRuntimeHotUpdate()
169
}
170
0 commit comments