antd
Version:
An enterprise-class UI design language and React components implementation
28 lines (27 loc) • 933 B
JavaScript
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")["default"];
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
exports.noop = noop;
Object.defineProperty(exports, "resetWarned", {
enumerable: true,
get: function get() {
return _warning.resetWarned;
}
});
var _warning = _interopRequireWildcard(require("rc-util/lib/warning"));
function noop() {}
// eslint-disable-next-line import/no-mutable-exports
var warning = noop;
if (process.env.NODE_ENV !== 'production') {
warning = function warning(valid, component, message) {
(0, _warning["default"])(valid, "[antd: ".concat(component, "] ").concat(message));
// StrictMode will inject console which will not throw warning in React 17.
if (process.env.NODE_ENV === 'test') {
(0, _warning.resetWarned)();
}
};
}
var _default = exports["default"] = warning;
;