1 | import global from "./global.js";
|
2 | import { maybe } from "./maybe.js";
|
3 | var __ = "__";
|
4 | var GLOBAL_KEY = [__, __].join("DEV");
|
5 | function 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 | }
|
19 | export default getDEV();
|
20 | //# sourceMappingURL=DEV.js.map |
\ | No newline at end of file |