Skip to content

Commit

Permalink
Fix bad modRequest in flight entry manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Aug 14, 2024
1 parent e755e77 commit 06a420c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -626,11 +626,11 @@ export class FlightClientEntryPlugin {
const isCSS = isCSSMod(mod)

const modPath: string = mod.resourceResolveData?.path || ''
const modQuery = mod.resourceResolveData?.query || ''
// We have to always use the resolved request here to make sure the
// server and client are using the same module path (required by RSC), as
// the server compiler and client compiler have different resolve configs.
let modRequest: string | undefined =
modPath + mod.resourceResolveData?.query
let modRequest: string = modPath + modQuery

// Context modules don't have a resource path, we use the identifier instead.
if (mod.constructor.name === 'ContextModule') {
Expand Down

0 comments on commit 06a420c

Please sign in to comment.