andrewosh / mountable-hypertrie

A Hypertrie wrapper that supports mounting of other Hypertries
MIT License
26 stars 9 forks source link

Fix path.posix not being available in browsers #5

Open t-mullen opened 4 years ago

t-mullen commented 4 years ago

path-browserify does not provide a .posix implementation.

Environments without a posix implementation should just use the native implementation.

ghost commented 2 years ago

hyperdrive works in the browser when this patch is applied

ralphtheninja commented 2 years ago

@andrewosh Any reason for not getting this merged?

ralphtheninja commented 2 years ago

I just had a look at path-browserify and now it has a .posix property added, see https://github.com/browserify/path-browserify/blob/master/index.js#L527

So this PR can be closed. Solution is to update your browserify version to at least version 17.