From c06a32043fe84fc69892031623172289bd15ab98 Mon Sep 17 00:00:00 2001
From: SheetJS <dev@sheetjs.com>
Date: Mon, 10 Apr 2023 01:15:44 -0400
Subject: [PATCH] Add ESM helper methods to CJS build (fixes #2909)

---
 bits/98_exports.js | 2 ++
 types/index.d.ts   | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/bits/98_exports.js b/bits/98_exports.js
index 22ab3fd..176ee24 100644
--- a/bits/98_exports.js
+++ b/bits/98_exports.js
@@ -10,6 +10,8 @@ XLSX.writeFileAsync = writeFileAsync;
 XLSX.utils = utils;
 XLSX.writeXLSX = writeSyncXLSX;
 XLSX.writeFileXLSX = writeFileSyncXLSX;
+XLSX.set_fs = set_fs;
+XLSX.set_cptable = set_cptable;
 XLSX.SSF = SSF;
 if(typeof __stream !== "undefined") XLSX.stream = __stream;
 if(typeof CFB !== "undefined") XLSX.CFB = CFB;
diff --git a/types/index.d.ts b/types/index.d.ts
index d565620..4db5628 100644
--- a/types/index.d.ts
+++ b/types/index.d.ts
@@ -14,9 +14,9 @@ export const SSF: any;
 // export { CFB };
 export const CFB: any;
 
-/** ESM ONLY! Set internal `fs` instance */
+/** Set internal `fs` instance */
 export function set_fs(fs: any): void;
-/** ESM ONLY! Set internal codepage tables */
+/** Set internal codepage tables */
 export function set_cptable(cptable: any): void;
 
 /** NODE ONLY! Attempts to read filename and parse */