mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25:15 +00:00
21 lines
551 B
JavaScript
21 lines
551 B
JavaScript
|
(function (factory) {
|
||
|
typeof define === 'function' && define.amd ? define(factory) :
|
||
|
factory();
|
||
|
}((function () { '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);
|
||
|
}
|
||
|
throw new Error(prefix + ": " + (message || ''));
|
||
|
}
|
||
|
exports.default = invariant;
|
||
|
|
||
|
})));
|