-
Notifications
You must be signed in to change notification settings - Fork 160
refactor(excel-export): switch to explicit fflate/browser entry #17122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,7 +2,7 @@ import { IExcelFile } from './excel-interfaces'; | |||||
| import { ExcelStrings } from './excel-strings'; | ||||||
| import { WorksheetData } from './worksheet-data'; | ||||||
|
|
||||||
| import { strToU8 } from 'fflate'; | ||||||
| import { strToU8 } from 'fflate/browser'; | ||||||
|
||||||
| import { strToU8 } from 'fflate/browser'; | |
| import { strToU8 } from 'fflate'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Importing from
fflate/browserhard-codes the browser entry at module load time. SinceIgxExcelExporterServiceis part of the publicgrids/coresurface (and can be pulled into SSR/server bundles indirectly), this can cause SSR/runtime failures iffflate/browsertouches browser globals during evaluation. Consider lazy-loadingfflate/browseronly when an export is triggered (similar to the dynamicimport('jspdf')used inpdf-exporter.ts) or introducing an environment-aware wrapper that selects the appropriate entry for browser vs server builds.