react-instantsearch-core

7.25.07.26.0
dist/cjs/lib/invariant.js
~dist/cjs/lib/invariant.jsModified
+11−17
Index: package/dist/cjs/lib/invariant.js
===================================================================
--- package/dist/cjs/lib/invariant.js
+++ package/dist/cjs/lib/invariant.js
@@ -1,25 +1,19 @@
-"use strict";
+'use strict';
 
-Object.defineProperty(exports, "__esModule", {
-  value: true
-});
-exports.invariant = invariant;
 /**
  * Throws an error if the condition is not met.
  *
  * 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.
- */
-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');
+    }
+}
+
+exports.invariant = invariant;