"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compile=compile;const tslib_1=require("tslib"),config_1=require("../../../../config/config"),tools_1=require("../../../../utils/tools"),error_1=require("../../../../utils/error"),locales_1=tslib_1.__importDefault(require("../../../../utils/locales/locales"));function compile(e,o,r){if(void 0===(0,tools_1.bufferToUtf8String)(e))throw new error_1.CodeError(locales_1.default.config.FILE_NOT_UTF8.format(o),config_1.FILE_NOT_UTF8)}