From 260c05d16be9cc39f74a88544460b5637d22a0de Mon Sep 17 00:00:00 2001 From: Fabian Franz Date: Wed, 25 Nov 2020 00:51:14 +0100 Subject: [PATCH] Issue #186: Fix duplicate data in cached build. Fixes: #186 --- src/build.mjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/build.mjs b/src/build.mjs index 927c372..b1f3117 100644 --- a/src/build.mjs +++ b/src/build.mjs @@ -260,11 +260,14 @@ export const build = function(statics) { current = current[0]; } mode = current; + current = mode[0]; + mode[0] = []; + if (MINI) { - (current = current[0]).push(h.apply(null, mode.slice(1))); + current.push(h.apply(null, mode.slice(1))); } else { - (current = current[0]).push(CHILD_RECURSE, 0, mode); + current.push(CHILD_RECURSE, 0, mode); } mode = MODE_SLASH; }