UNPKG

@vuesax-alpha/nightly

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