magic-globals
magic-globals copied to clipboard
avoid "Cannot redefine property" errors when multiple dependencies ha…
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.