UNPKG

react-obsidian

Version:

Dependency injection framework for React and React Native applications

18 lines 566 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isDev = void 0; function isDev() { return isNodeDev() || isReactNativeDev(); } exports.isDev = isDev; function isNodeDev() { var _a; // eslint-disable-next-line @typescript-eslint/dot-notation return ['test', 'development'].includes((_a = process.env['NODE_ENV']) !== null && _a !== void 0 ? _a : ''); } function isReactNativeDev() { var _a; // @ts-ignore return (_a = __DEV__) !== null && _a !== void 0 ? _a : false; } //# sourceMappingURL=isDev.js.map