UNPKG

@sheetxl/scripting

Version:

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

22 lines (21 loc) 761 B
import { CommonUtils as u } from "@sheetxl/utils"; /** * @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. */ let i = null, n = null, e = null; const p = Object.freeze({ compileTypescript: async function(t) { if (!(t?.source ?? null)) return null; if (n && u.deepEqual(n, t)) return i; const l = await async function() { if (e) return e; const { TypeScriptCompiler: o } = await import("./CmNRrZvUkjgk3Nf0.mjs"); return e = new o(), e; }(), r = await l.compileModule(t); return i = r, n = t, r; } }); export { p as ScriptingUtils };