fix: ensure makeMap calls are tree-shakable

This commit is contained in:
Evan You
2019-10-15 12:19:46 -04:00
parent 58fffcb987
commit 7de3aee317
4 changed files with 10 additions and 9 deletions

View File

@@ -5,4 +5,4 @@ const GLOBALS_WHITE_LISTED =
'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' +
'Object,Boolean,String,RegExp,Map,Set,JSON,Intl'
export const isGloballyWhitelisted = makeMap(GLOBALS_WHITE_LISTED)
export const isGloballyWhitelisted = /*@__PURE__*/ makeMap(GLOBALS_WHITE_LISTED)