UNPKG

@txdfe/at

Version:

一个设计体系组件库

33 lines (31 loc) 874 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isProduction = exports.ieVersion = exports["default"] = void 0; /** * IE浏览器的渲染引擎版本号 * 注意:此属性与浏览器版本号不同,IE的渲染引擎版本号是可以通过HTML header或手动设置去更改的 * @type {Number} 6 ~ 10 */ var ieVersion = exports.ieVersion = typeof document !== 'undefined' ? document.documentMode : undefined; /** * 判断是否是生产环境 * @type {Boolean} */ var isProduction = exports.isProduction = function isProduction() { var PRODUCTION_ENV = 'production'; var result = false; try { if (process.env.NODE_ENV === PRODUCTION_ENV) { result = true; } } catch (err) { // } return result; }; var _default = exports["default"] = { ieVersion: ieVersion, isProduction: isProduction };