UNPKG

@rollbar/react

Version:

Effortlessly track and debug errors in your React applications with Rollbar. This package includes advanced error tracking features and a set of React-specific enhancements to help you identify and fix issues more quickly.

21 lines (17 loc) 570 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var isProduction = process.env.NODE_ENV === 'production'; var prefix = 'Invariant failed'; function invariant(condition, message) { if (condition) { return; } if (isProduction) { throw new Error(prefix); } var provided = typeof message === 'function' ? message() : message; var value = provided ? "".concat(prefix, ": ").concat(provided) : prefix; throw new Error(value); } exports.default = invariant; //# sourceMappingURL=tiny-invariant.js.map