index.min.js.map
780 Bytes
{"version":3,"file":"index.min.js","sources":["../src/index.js","../../memoize/src/index.js"],"sourcesContent":["import memoize from '@emotion/memoize'\n\ndeclare var codegen: { require: string => RegExp }\n\nconst reactPropsRegex = codegen.require('./props')\n\nexport default memoize(reactPropsRegex.test.bind(reactPropsRegex))\n","// @flow\n\nexport default function memoize<V>(fn: string => V): string => V {\n const cache = {}\n\n return (arg: string) => {\n if (cache[arg] === undefined) cache[arg] = fn(arg)\n return cache[arg]\n }\n}\n"],"names":["fn","cache","reactPropsRegex","test","bind","arg","undefined"],"mappings":"8LAIA,ICFmCA,EAC3BC,EDCFC,kyHCF6BF,EDIZE,EAAgBC,KAAKC,KAAKF,GCHzCD,EAAQ,GAEP,SAACI,eACaC,IAAfL,EAAMI,KAAoBJ,EAAMI,GAAOL,EAAGK,IACvCJ,EAAMI"}