path-browserify icon indicating copy to clipboard operation
path-browserify copied to clipboard

Crit! path.relative trim first symbol of dirname

Open eXponenta opened this issue 5 years ago • 1 comments

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

eXponenta avatar Jul 19 '20 22:07 eXponenta

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:

goto-bus-stop avatar Jul 20 '20 15:07 goto-bus-stop