browserify / path-browserify

The path module from Node.js for browsers
MIT License
173 stars 43 forks source link

Crit! path.relative trim first symbol of dirname #21

Open eXponenta opened 4 years ago

eXponenta commented 4 years ago

Description: Calling path.relative('.', 'root/app') return 'oot/app' instead of 'root/app'

Expected: 'root/app'

Problem at: https://github.com/browserify/path-browserify/blob/master/index.js#L23

Fiddle (isolated function): https://jsbin.com/cinaxatugo/1/edit?js,console

goto-bus-stop commented 4 years ago

This is fixed in 1.0.0. I would be happy to do another 0.x release but unfortunately that will still not help for webpack because node-libs-browser is pinned to 0.0.1 and afaik does not receive updates anymore.

for browserify, path-browserify 1.x will be used in browserify 17, which will be released as soon as i have time :innocent: