"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = invariant;

var _consts = require("./consts");

function invariant(condition, message) {
  if (_consts.__DEV__) {
    if (condition) {
      return;
    }

    var text = "Warning: ".concat(message);

    if (typeof console !== 'undefined') {
      console.warn(text);
    }

    try {
      throw Error(text);
    } catch (x) {}
  }
}