UNPKG

553 BJavaScriptView Raw
1import global from "./global.js";
2import { maybe } from "./maybe.js";
3var __ = "__";
4var GLOBAL_KEY = [__, __].join("DEV");
5function getDEV() {
6 try {
7 return Boolean(__DEV__);
8 }
9 catch (_a) {
10 Object.defineProperty(global, GLOBAL_KEY, {
11 value: maybe(function () { return process.env.NODE_ENV; }) !== "production",
12 enumerable: false,
13 configurable: true,
14 writable: true,
15 });
16 return global[GLOBAL_KEY];
17 }
18}
19export default getDEV();
20//# sourceMappingURL=DEV.js.map
\No newline at end of file