Files
med-notes/.pnpm-store/v10/files/77/23f74e64dcd7f501637ebbd46abfab564b622f6c501743a87437b4c71ba05d870f12f90fd8ccab81449d5b65733c07789ba24141c32044fec74f55ec2bf4cc
2025-05-09 05:30:08 +02:00

24 lines
841 B
Plaintext

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.invariant = factory());
})(this, (function () { 'use strict';
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);
}
return invariant;
}));