UNPKG

yhui-yuanhuan

Version:

A Component Library for Vue 3 based on element-plus

21 lines (18 loc) 486 B
import { isString } from '@vue/shared'; class YHUIError extends Error { constructor(m) { super(m); this.name = "YHUIError"; } } function throwError(scope, m) { throw new YHUIError(`[${scope}] ${m}`); } function debugWarn(scope, message) { if (process.env.NODE_ENV !== "production") { const error = isString(scope) ? new YHUIError(`[${scope}] ${message}`) : scope; console.warn(error); } } export { debugWarn, throwError }; //# sourceMappingURL=error.mjs.map