iriscouch/browser-request

Requiring via browserify makes window.XMLHttpRequest undefined

tmcw opened this issue · 2 comments

tmcw commented
// good
console.log(window.XMLHttpRequest);

var request = require('browser-request');

// undefined
console.log(window.XMLHttpRequest);

Found my way here because this module broke backbone.sync.

Is it really necessary to clobber the global?

svnm commented

I have the same issue ReferenceError: XMLHttpRequest is not defined using Browserify