You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When having code that is shared with the browser, it would be great if we could have a browser specific entry point that just returned the window.XMLHttpRequest object.
Both browserify and webpack can read a "browser" field on the module's package.json that defines a new entry point to use when bundling, as described on this spec.
Otherwise, it's necessary to explicitly avoid bundling the module and add some conditional logic to use the browser's XMLHttpRequest instead.
I can create a pull request to add this improvement.
The text was updated successfully, but these errors were encountered:
When having code that is shared with the browser, it would be great if we could have a browser specific entry point that just returned the
window.XMLHttpRequest
object.Both browserify and webpack can read a
"browser"
field on the module'spackage.json
that defines a new entry point to use when bundling, as described on this spec.Otherwise, it's necessary to explicitly avoid bundling the module and add some conditional logic to use the browser's
XMLHttpRequest
instead.I can create a pull request to add this improvement.
The text was updated successfully, but these errors were encountered: