import { C as resolveComma, E as toArray } from "./main-BgAbc3Rw.js";
import { n as enable, r as namespaces, t as createDebug } from "./node-B3Gdtau1.js";
//#region ../../node_modules/.pnpm/tsdown@0.21.5_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.5_@tsdown+exe@0.21.5_@type_bddbe1807a7ea96241d07b33ef15a1ae/node_modules/tsdown/dist/debug-C4FmgzkJ.mjs
const debugLog = createDebug("tsdown:debug");
function enableDebug(debug) {
	if (!debug) return;
	let namespace;
	if (debug === true) namespace = "tsdown:*";
	else namespace = resolveComma(toArray(debug)).map((v) => `tsdown:${v}`).join(",");
	const ns = namespaces();
	if (ns) namespace += `,${ns}`;
	enable(namespace);
	debugLog("Debugging enabled", namespace);
}
//#endregion
export { enableDebug as t };
