We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e755e77 commit 06a420cCopy full SHA for 06a420c
packages/next/src/build/webpack/plugins/flight-client-entry-plugin.ts
@@ -626,11 +626,11 @@ export class FlightClientEntryPlugin {
626
const isCSS = isCSSMod(mod)
627
628
const modPath: string = mod.resourceResolveData?.path || ''
629
+ const modQuery = mod.resourceResolveData?.query || ''
630
// We have to always use the resolved request here to make sure the
631
// server and client are using the same module path (required by RSC), as
632
// the server compiler and client compiler have different resolve configs.
- let modRequest: string | undefined =
633
- modPath + mod.resourceResolveData?.query
+ let modRequest: string = modPath + modQuery
634
635
// Context modules don't have a resource path, we use the identifier instead.
636
if (mod.constructor.name === 'ContextModule') {
0 commit comments