"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.withProdMode = withProdMode;
const tslib_1 = require("tslib");
const environment = tslib_1.__importStar(require("@apollo/client/utilities/environment"));
const withCleanup_js_1 = require("./withCleanup.cjs");
function withProdMode() {
    const prev = { prevDEV: environment.__DEV__ };
    Object.defineProperty(environment, "__DEV__", {
        value: false,
        configurable: true,
    });
    return (0, withCleanup_js_1.withCleanup)(prev, ({ prevDEV }) => {
        Object.defineProperty(environment, "__DEV__", { value: prevDEV });
    });
}
//# sourceMappingURL=withProdMode.cjs.map
