sat-utils
Version:
9 lines (8 loc) • 410 B
TypeScript
/**
* Dynamically compiles a CommonJS module from source code.
* @param {string} src The source code of the CommonJS module to compile.
* @param {string} [filename=''] The filename of the module (optional).
* @returns {any} The exports object of the compiled module.
*/
declare function getCommonJsModuleFromSourceString(src: string, filename?: string): any;
export { getCommonJsModuleFromSourceString };