Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: conflict between browser URL object and Node URL object (#3061)
I am running this package using electron, what i noticed was that due to the fact that the lines between node and browser environments become a bit blurred, the URL class that was being used was the one defined by the browser and not node. By making an explicit require it ensures the correct Class is used. While creating a test for this would be difficuilt i think adding an eslint rule to stop using globally defined objects and require imports instead would resolve issues like this in the future
- Loading branch information