Skip to content

Commit

Permalink
Add dirty hack to make browserify work
Browse files Browse the repository at this point in the history
  • Loading branch information
RangerMauve committed Aug 8, 2019
1 parent 878bbb2 commit 9c1b8d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
const path = require('path')

// This is a dirty hack for browserify to work. 😅
if(!path.posix) path.posix = path

const discovery = require('hyperdiscovery')
const datStorage = require('universal-dat-storage')
const DatEncoding = require('dat-encoding')
const crypto = require('hypercore-crypto')
const RAM = require('random-access-memory')
const fs = require('fs')
const path = require('path')

const datDNS = require('dat-dns')
const hyperdrive = require('hyperdrive')
Expand Down

0 comments on commit 9c1b8d2

Please sign in to comment.