UNPKG

@sheetxl/studio-vanilla

Version:

SheetXL Studio - Vanilla entry point for integrating SheetXL UI.

30 lines (29 loc) 862 B
/** * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.27 * * (C) 2025-present SheetXL Inc. & Michael T. Ford * License: The license can be found at https://www.sheetxl.com/license. */ class o { constructor(r = {}) { this.workerWrapper = null; } async getWorkerWrapper() { if (this.workerWrapper) return this.workerWrapper; const { createCompilerWorker: r } = await import("./lZp4y0YLPsws_xuv.mjs"); return this.workerWrapper = await r(), this.workerWrapper; } async compileModule(r) { try { return (await this.getWorkerWrapper()).execute(r); } catch (e) { throw console.error("Failed to compile using worker:", e), e; } } terminate() { this.workerWrapper?.terminate(), this.workerWrapper = null; } } export { o as TypeScriptCompiler };