about summary refs log tree commit diff
path: root/src/platform/crypto.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/crypto.ts')
-rw-r--r--src/platform/crypto.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/platform/crypto.ts b/src/platform/crypto.ts
new file mode 100644
index 000000000..c7deb21cc
--- /dev/null
+++ b/src/platform/crypto.ts
@@ -0,0 +1,7 @@
+// HACK
+// expo-modules-core tries to require('crypto') in uuid.web.js
+// and while it tries to detect web crypto before doing so, our
+// build fails when it tries to do this require. We use a babel
+// and tsconfig alias to direct it here
+// -prf
+export default crypto