magic-globals icon indicating copy to clipboard operation
magic-globals copied to clipboard

avoid "Cannot redefine property" errors when multiple dependencies ha…

Open djulien opened this issue 6 years ago • 0 comments

I'm getting the following error if magic-globals is require'd from multiple dependencies: TypeError: Cannot redefine property: __stack

To avoid this error, I added a check in magic-globals if properties are already defined.

djulien avatar Feb 23 '19 23:02 djulien