From 4ed64d26bc0d2acc7fe075ad45a3cccd3bd4aa19 Mon Sep 17 00:00:00 2001 From: tada5hi Date: Sun, 28 May 2023 23:54:34 +0200 Subject: [PATCH] fix: create a new weak map for each source --- src/module.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/module.ts b/src/module.ts index 8642fdc..c7c0d15 100644 --- a/src/module.ts +++ b/src/module.ts @@ -152,6 +152,8 @@ function baseMerger( } } + context.map = new WeakMap(); + if (context.options.priority === PriorityName.RIGHT) { return baseMerger(context, ...sources, target) as MergerResult; }