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

fix!: replace `process.cwd()` with `"/"`

Open waynevanson opened this issue 1 year ago • 0 comments

THIS IS A BREAKING CHANGE

process is not a global in the browser and seems like a left over implementation detail when transferred from NodeJS.

There are two options to choose from as solutions:

  1. Throw an error instead of calling process.cwd().
  2. Replace process.cwd() with the root directory "/".

I've chosen the latter because it's the first thing that came to mind, but will happily do the first if that's desired.

  • Closes #29
  • Closes #32

waynevanson avatar Jul 31 '24 09:07 waynevanson