| 1 | |
| 2 | * react-router v8.3.0
|
| 3 | *
|
| 4 | * Copyright (c) Remix Software Inc.
|
| 5 | *
|
| 6 | * This source code is licensed under the MIT license found in the
|
| 7 | * LICENSE.md file in the root directory of this source tree.
|
| 8 | *
|
| 9 | * @license MIT
|
| 10 | */
|
| 11 |
|
| 12 | function invariant(value, message) {
|
| 13 | if (value === false || value === null || typeof value === "undefined") {
|
| 14 | console.error("The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose");
|
| 15 | throw new Error(message);
|
| 16 | }
|
| 17 | }
|
| 18 |
|
| 19 | export { invariant as default };
|