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

Most upvoted comments

Um, was this change reverted at some point? Having the same issue with importing as es6 module, since this is undefined in that case.