react-instantsearch-core
7.25.07.26.0
dist/es/lib/invariant.js~
dist/es/lib/invariant.jsModified+10−12
Index: package/dist/es/lib/invariant.js
===================================================================
--- package/dist/es/lib/invariant.js
+++ package/dist/es/lib/invariant.js
@@ -4,16 +4,14 @@
* The error is exhaustive in development, and becomes generic in production.
*
* This is used to make development a better experience to provide guidance as
* to where the error comes from.
- */
-export function invariant(condition, message) {
- if (condition) {
- return;
- }
- if (!(process.env.NODE_ENV === 'development')) {
- throw new Error('Invariant failed');
- }
- if (process.env.NODE_ENV === 'development') {
- throw new Error("[InstantSearch] ".concat(typeof message === 'function' ? message() : message));
- }
-}
\ No newline at end of file
+ */ function invariant(condition, message) {
+ if (condition) {
+ return;
+ }
+ {
+ throw new Error('Invariant failed');
+ }
+}
+
+export { invariant };