PapaParse: Papaparse not working with browserify
Because of the way browserify module’s work, the scope here is not actually window.
While the this
keyword is good for keeping everything inclosed, the papaparse library uses the window.postMessage
function, so the anonymous function must return window
, otherwise you run into errors.
Before I submitted a PR, I wanted to get @mholt’s opinion on if this is the right move here.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 16 (13 by maintainers)
Commits related to this issue
- Explicitly pass window as global context if it is available This helps with Browserify / webpack integration see #167 — committed to robd/PapaParse by robd 9 years ago
Um, was this change reverted at some point? Having the same issue with importing as es6 module, since
this
is undefined in that case.