We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bc0321 commit 392f3f3Copy full SHA for 392f3f3
packages/excel-builder-vanilla/src/streaming.ts
@@ -16,8 +16,8 @@ export interface ExcelFileStreamOptions {
16
* Yields zipped chunks for browser (ReadableStream) or NodeJS (async generator).
17
*/
18
export function createExcelFileStream(workbook: Workbook, options?: ExcelFileStreamOptions) {
19
- const isBrowser = typeof window !== 'undefined' && typeof window.ReadableStream !== 'undefined';
20
- const isNode = typeof process !== 'undefined' && process.versions?.node;
+ const isBrowser = typeof window?.ReadableStream !== 'undefined';
+ const isNode = typeof process?.versions?.node !== 'undefined';
21
if (isBrowser) {
22
return browserExcelStream(workbook, options);
23
}
0 commit comments