Skip to content

Commit

Permalink
reset ASYNC_CLIENT_MODULES for each loop
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Sep 26, 2022
1 parent 7b8d3bc commit 13ea3b8
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -64,6 +64,7 @@ export class FlightClientEntryPlugin {
})

compiler.hooks.afterCompile.tap(PLUGIN_NAME, (compilation) => {
ASYNC_CLIENT_MODULES.clear()
traverseModules(compilation, (mod) => {
// The module must has request, and resource so it's not a new entry created with loader.
// Using the client layer module, which doesn't have `rsc` tag in buildInfo.
Expand Down

0 comments on commit 13ea3b8

Please sign in to comment.