const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
let node_fs = require("node:fs");

//#region src/utils/getIsFileUpdatedRecently.ts
const SKIP_RANGE_OF_LAST_UPDATE_TIME = 0;
/**
* Check if file was updated recently, to skip re-translation
*/
const getIsFileUpdatedRecently = (localeFilePath) => {
	const stats = (0, node_fs.statSync)(localeFilePath);
	return new Date(stats.mtime) > new Date(Date.now() - SKIP_RANGE_OF_LAST_UPDATE_TIME);
};

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