path-browserify
path-browserify copied to clipboard
fix!: replace `process.cwd()` with `"/"`
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:
- Throw an error instead of calling
process.cwd(). - 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