diff --git a/package.json b/package.json index a85f8b9..bbc4499 100644 --- a/package.json +++ b/package.json @@ -53,5 +53,8 @@ "test-phantomjs": "node tests/test.js --phantomjs", "test-node": "mocha tests/node-tests.js tests/test-cases.js", "test": "npm run lint && npm run test-node && npm run test-phantomjs" + }, + "dependencies": { + "xmlhttprequest": "^1.8.0" } } diff --git a/papaparse.js b/papaparse.js index 0b3dc49..49c9908 100755 --- a/papaparse.js +++ b/papaparse.js @@ -4,6 +4,7 @@ https://github.com/mholt/PapaParse License: MIT */ +var XMLHttpRequest = XMLHttpRequest || require('xmlhttprequest').XMLHttpRequest; (function(root, factory) { /* globals define */