
//#region ../@intlayer/config/dist/esm/utils/getExtension.mjs
const getExtension = (configuration, format) => {
	const outputFormats = configuration.build.outputFormat;
	if (format === "cjs") return "cjs";
	if (format === "esm") return "mjs";
	if (outputFormats.includes("cjs")) return "cjs";
	if (outputFormats.includes("esm")) return "mjs";
	return "cjs";
};

//#endregion
exports.getExtension = getExtension;
//# sourceMappingURL=getExtension.cjs.map