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

Add "browser" field to package.json #100

Merged
merged 1 commit into from Jan 11, 2014
Merged

Conversation

grncdr
Copy link
Contributor

@grncdr grncdr commented Jan 9, 2014

This makes require('hawk') return the browser-compatible client
in bundles created by build tools such as browserify.

This makes `require('hawk')` return the browser-compatible client
in bundles created by build tools such as browserify.
@hueniverse
Copy link
Contributor

That's a thing?

@grncdr
Copy link
Contributor Author

grncdr commented Jan 10, 2014

Sorry I missed your reply somehow. Anyways, the short answer is "yes". The slightly longer answer is that browserify (and a few other browser bundlers) use browser-resolve which checks the "browser" field in package.json.

hueniverse pushed a commit that referenced this pull request Jan 11, 2014
Add "browser" field to package.json
@hueniverse hueniverse merged commit 87d4b04 into mozilla:master Jan 11, 2014
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants