UNPKG

infrastructure-components

Version:

Infrastructure-Components configure the infrastructure of your React-App as part of your React-Components.

16 lines (13 loc) 317 B
var isProduction = process.env.NODE_ENV === 'production'; var prefix = 'Invariant failed'; function invariant(condition, message) { if (condition) { return; } if (isProduction) { throw new Error(prefix); } else { throw new Error(prefix + ": " + (message || '')); } } export default invariant;