@tacky/store
Version:
State management framework based on react
19 lines (16 loc) • 520 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.invariant = invariant;
exports.fail = fail;
exports.OBFUSCATED_ERROR = void 0;
var OBFUSCATED_ERROR = 'An invariant failed, however the error is obfuscated because this is an production build.';
exports.OBFUSCATED_ERROR = OBFUSCATED_ERROR;
function invariant(check, message) {
if (!check) throw new Error('[@tacky/store]: ' + (message || OBFUSCATED_ERROR));
}
function fail(message) {
invariant(false, message);
throw 'X';
}