UNPKG

storybook

Version:

Storybook: Develop, document, and test UI components in isolation

15 lines (13 loc) 462 B
// ../node_modules/tiny-invariant/dist/esm/tiny-invariant.js var isProduction = process.env.NODE_ENV === "production", prefix = "Invariant failed"; function invariant(condition, message) { if (!condition) { if (isProduction) throw new Error(prefix); var provided = typeof message == "function" ? message() : message, value = provided ? "".concat(prefix, ": ").concat(provided) : prefix; throw new Error(value); } } export { invariant };