Skip to content

Commit

Permalink
fix rsc on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Oct 26, 2021
1 parent 7e9f801 commit 0ddd0ee
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/next/build/webpack/plugins/flight-manifest-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,7 @@ export class FlightManifestPlugin {
const chunkModules =
compilation.chunkGraph.getChunkModulesIterable(chunk)
for (const mod of chunkModules) {
let modId: string

const context = compiler.context
const nameForCondition = mod.nameForCondition()

if (nameForCondition && nameForCondition.startsWith(context)) {
modId = '.' + nameForCondition.slice(context.length)
} else {
modId = compilation.chunkGraph.getModuleId(mod)
}
let modId = compilation.chunkGraph.getModuleId(mod)

// remove resource query on production
if (typeof modId === 'string') {
Expand Down

0 comments on commit 0ddd0ee

Please sign in to comment.