const require_logger = require('../config/dist/esm/logger.cjs');
const require_resolveObjectPromises = require('../utils/resolveObjectPromises.cjs');

//#region ../@intlayer/chokidar/dist/esm/buildIntlayerDictionary/processContentDeclaration.mjs
/**
* Function to load, process the module and return the Intlayer Dictionary from the module file
*/
const processContentDeclaration = async (contentDeclaration) => {
	try {
		const content = await require_resolveObjectPromises.resolveObjectPromises(contentDeclaration.content);
		return {
			...contentDeclaration,
			content
		};
	} catch (error) {
		require_logger.logger(error, { level: "error" });
	}
};

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