Closed gardner closed 7 years ago
why are you exporting into strict mode? is that a react-native thing?
Yeah, react native uses the react-native preset. You can see the code here: https://github.com/facebook/react-native/blob/master/babel-preset/configs/main.js
It's weird because the react-native
preset seems to turn off strict for commonjs modules:
['transform-es2015-modules-commonjs', { strict: false, allowTopLevelThis: true }],
I logged this issue here in case there's any future-proofing to be done on ssb-keys. Please close this issue if there is none. I'll keep iterating on a fix. It's probably a setting that recently changed in react-native. Thanks! ⛵⛵⛵
actually, this was a simple fix. ssb-keys@7.0.4 now uses strict mode!
node: v6.9.3 npm: 3.10.10
Trying to import ssb-keys into React Native.