UNPKG

@sheetxl/scripting

Version:

Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild.

7 lines (6 loc) 773 B
"use strict";/** * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.6.6 * * (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("./CGuK_Jn2SEsJa3T4.cjs"));return t=new o,t}(),r=await i.compileModule(e);return l=r,n=e,r}});exports.ScriptingUtils=c;