@apollo/client
Version:
A fully-featured caching GraphQL client.
20 lines • 553 B
JavaScript
import global from "./global.js";
import { maybe } from "./maybe.js";
var __ = "__";
var GLOBAL_KEY = [__, __].join("DEV");
function getDEV() {
try {
return Boolean(__DEV__);
}
catch (_a) {
Object.defineProperty(global, GLOBAL_KEY, {
value: maybe(function () { return process.env.NODE_ENV; }) !== "production",
enumerable: false,
configurable: true,
writable: true,
});
return global[GLOBAL_KEY];
}
}
export default getDEV();
//# sourceMappingURL=DEV.js.map