warn.js 351 B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = warn;
  6. /** @deprecated Use `warning` instead. This will be removed in next major version */
  7. function warn(msg) {
  8. if (process.env.NODE_ENV !== 'production') {
  9. if (typeof console !== 'undefined' && console.warn) {
  10. console.warn(msg);
  11. }
  12. }
  13. }