path-browserify
path-browserify copied to clipboard
Crit! path.relative trim first symbol of dirname
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
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: