Skip to content

Commit 88b7704

Browse files
committed
final key optimization
1 parent 1cdac44 commit 88b7704

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
const CACHE = {};
1515

1616
export default function html(statics) {
17-
const key = statics;
18-
17+
const key = statics.length + statics;
1918
const tpl = CACHE[key] || (CACHE[key] = build(statics));
19+
2020
// eslint-disable-next-line prefer-rest-params
2121
return tpl(this, arguments);
2222
}

0 commit comments

Comments
 (0)