@sheetxl/scripting
Version:
Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild.
7 lines (6 loc) • 775 B
JavaScript
;/**
* @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.7.27
*
* (C) 2025-present SheetXL Inc. & Michael T. Ford
* License: The license can be found at https://www.sheetxl.com/license.
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@sheetxl/utils");let l=null,n=null,t=null;const c=Object.freeze({compileTypescript:async function(e){if(!(e?.source??null))return null;if(n&&u.CommonUtils.deepEqual(n,e))return l;const i=await(async function(){if(t)return t;const{TypeScriptCompiler:o}=await Promise.resolve().then(()=>require("./BRnBwa7X_-2hZkPR.cjs"));return t=new o,t})(),r=await i.compileModule(e);return l=r,n=e,r}});exports.ScriptingUtils=c;