Skip to content

Commit 10edc74

Browse files
committed
Add an extra hint for dead-code elimination
1 parent d8cdc21 commit 10edc74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ const getCacheKeyed = (statics) => {
206206
return CACHE[key] || (CACHE[key] = build(statics));
207207
};
208208

209-
const USE_MAP = typeof Map === 'function';
209+
const USE_MAP = !MINI && typeof Map === 'function';
210210
const CACHE = USE_MAP ? new Map() : {};
211211
const getCache = USE_MAP ? getCacheMap : getCacheKeyed;
212212

0 commit comments

Comments
 (0)