
//#region ../chokidar/dist/esm/utils/getFormatFromExtension.mjs
const getFormatFromExtension = (extension) => {
	switch (extension) {
		case ".ts":
		case ".tsx": return "ts";
		case ".cjs":
		case ".cjsx": return "cjs";
		case ".mjs": return "esm";
		case ".json":
		case ".json5": return "json";
	}
	return "esm";
};

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