From 7a7294cd88fa5074a29c2bd39a22043051286eb9 Mon Sep 17 00:00:00 2001 From: Shu Ding Date: Wed, 7 Dec 2022 11:27:57 +0100 Subject: [PATCH] test --- packages/next/build/entries.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/next/build/entries.ts b/packages/next/build/entries.ts index e0f7aede1ed0..ae00a6095ff4 100644 --- a/packages/next/build/entries.ts +++ b/packages/next/build/entries.ts @@ -19,7 +19,7 @@ import { SERVER_RUNTIME, WEBPACK_LAYERS, } from '../lib/constants' -import { RSC_MODULE_TYPES } from '../shared/lib/constants' +import { APP_CLIENT_INTERNALS, RSC_MODULE_TYPES } from '../shared/lib/constants' import { CLIENT_STATIC_FILES_RUNTIME_AMP, CLIENT_STATIC_FILES_RUNTIME_MAIN, @@ -520,7 +520,8 @@ export function finalizeEntrypoint({ const isAppLayer = hasAppDir && (name === CLIENT_STATIC_FILES_RUNTIME_MAIN_APP || - entry?.import?.includes('next-flight-client-entry-loader')) + name === APP_CLIENT_INTERNALS || + name.startsWith('app/')) if ( // Client special cases @@ -530,7 +531,6 @@ export function finalizeEntrypoint({ name !== CLIENT_STATIC_FILES_RUNTIME_AMP && name !== CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH ) { - // TODO-APP: this is a temporary fix. @shuding is going to change the handling of server components if (isAppLayer) { return { dependOn: CLIENT_STATIC_FILES_RUNTIME_MAIN_APP,