-
Notifications
You must be signed in to change notification settings - Fork 46
Closed
Labels
Description
As reported here by @davodesign84 and here, it appears that #45 broke React Native because for some reason WeakMap polyfill from core-js returns undefined:
undefined is not a constructor (evaluating 'new _weakMap2.default()')
Alas, I don’t have React Native at hand and can’t look into why this happens. We just use it like this:
import WeakMap from 'core-js/library/es6/weak-map';I’ll be grateful if anybody can look into why this fails on RN. Possible alternatives:
- Use a different
WeakMappolyfill - Use a
Mappolyfill instead of the issue is specific toWeakMap