Skip to content

Commit

Permalink
fix: create a new weak map for each source
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed May 28, 2023
1 parent 76baf8e commit 4ed64d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ function baseMerger<B extends MergerSource[]>(
}
}

context.map = new WeakMap();

if (context.options.priority === PriorityName.RIGHT) {
return baseMerger(context, ...sources, target) as MergerResult<B>;
}
Expand Down

0 comments on commit 4ed64d2

Please sign in to comment.