Using invariant imported with the following two patterns fails opposite depending on how we run the build (either as unit-tests under jest, or as a react-native view on android).
import * as invariant from "invariant";
import invariant from "invariant";
Swapping the import from one to the other enables/disables using invariant in the opposite target.