Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds browser-file/field in package.json. #66

Closed
wants to merge 1 commit into from
Closed

Adds browser-file/field in package.json. #66

wants to merge 1 commit into from

Conversation

tassmjau
Copy link

@tassmjau tassmjau commented Dec 4, 2013

This commit adds the functionality of using the browsers implementation of
XMLHttpRequest when this module is used in the browser. The browser-field in
package.json points to the file which will be used if compiled with a tool
that supports this feature.
Really convenient if you're building stuff that will run in both server and
browser environments.

  This commit adds the functionality of using the browsers implementation of
  XMLHttpRequest when this module is used in the browser. The browser-field in
  package.json points to the file which should be used if compiled with a tool
  that supports this feature.
  Really convenient if you're building stuff that will run in both server and
  browser environments.
@ibc
Copy link

ibc commented Mar 15, 2015

Any reason not to accept this super-useful PR?

@leeyeh
Copy link

leeyeh commented Aug 27, 2015

+1

acinader pushed a commit to acinader/node-XMLHttpRequest that referenced this pull request Mar 2, 2016
Tell webpack to mock fs and child_process when packaging for the browser.

This will fix driverdan#89 and is lighter-weight than driverdan#66.
@tassmjau tassmjau closed this May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants