Skip to content

Commit

Permalink
Issue developit#186: Fix duplicate data in cached build.
Browse files Browse the repository at this point in the history
  • Loading branch information
LionsAd committed Nov 24, 2020
1 parent ed1c620 commit 260c05d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 260c05d

Please sign in to comment.