Fix make dist and browserify issue require #572
No reviewers
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#572
Loading…
Reference in New Issue
No description provided.
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Coverage remained the same at 94.624% when pulling
56f1f4e67c
on Liryna:master into5ae6b1965b
on SheetJS:master.Hello @Liryna !
The breaks in the require statements are used to trick browserify into not including those files. If
require
is not available (like in the browser) none of those dependencies are pulled in. When you are using browserify do you find it pulls in an FS shim or other shims?Hi @SheetJSDev ,
It is not really browserify in my case, it is meteor that do his magic trick to detect which JS are used by scanning the require to send to the client side. With the break, it seems like meteor is unable to see it and the jszip is for example not sent and therefore missing at runtime.😢
@Liryna the relevant changes were applied to un-break the require statements. Please check if it works. Keep the PR open though, since you also made some changes to the makefile I also want to revisit the build infrastructure
Hi @SheetJSDev ,
Thank you for the changes ! Yes it worked for me on meteor 👍
We also folded the ODS logic into xlsx.js and reworked the cpexcel build to omit the unnecessary require, so I think we settled the require issues.
GNU sed doesn't accept a space between the
-i
and the specified extension. The BSD sed appears to accept it, even though the manpage states the expected form is-i extension
, so we will fix that as part of https://github.com/SheetJS/js-xlsx/issues/589Pull request closed