4 ms·
That will work for lodash, because it's just a bag of functions. But anything that creates objects that are passed outside of a single module could have problem
by hyperpape 10y ago
That will work for lodash, because it's just a bag of functions. But anything that creates objects that are passed outside of a single module could have problems.
There was actually a high profile bug when someone ended up with two versions of react included in the same page: https://github.com/facebook/react/issues/1939 https://github.com/facebook/react/issues/1939.
- jessaustin 10y agoThat seems to be a slightly different situation? As the issue poster described, a single page had invoked two copies of React, both of which assumed ownership of a particular "global" variable. (Not really global, but a particular member of a global.) I'm not a React expert, but I don't see why that situation would only affect multiple React copies with different versions?