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

Added support for CommonJS/browserify. #261

Merged
merged 4 commits into from
Nov 3, 2014

Conversation

clayzermk1
Copy link
Contributor

Per our conversation on IRC, a PR for CommonJS/browserify support. 🍻
#259
#253
#206

@@ -4,7 +4,7 @@
// If there is no JSON, we no-op the core features of Raven
// since JSON is required to encode the payload
var _Raven = window.Raven,
hasJSON = !!(window.JSON && window.JSON.stringify),
hasJSON = !!(typeof JSON === 'object' && JSON.stringify),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already have is isObject() helper.

@clayzermk1
Copy link
Contributor Author

OK, give that latest commit some eyes. I added a global to the AMD section per UMDJS. I think that should do the trick. I don't use AMD so I have no way to easily test the AMD side of things. Do you have an AMD environment to give it a quick run through? I can confirm that it is working with browserify.

@mattrobenolt
Copy link
Contributor

I can test this later. That seems sorta sane. :) Still gross, but if it works... :shipit:

@clayzermk1
Copy link
Contributor Author

Nice, thanks for all your help Matt! 🍻

@clayzermk1
Copy link
Contributor Author

Bump on this, any chance we can get these changes merged so I can stop using my fork? 😜

mattrobenolt added a commit that referenced this pull request Nov 3, 2014
Added support for CommonJS/browserify.
@mattrobenolt mattrobenolt merged commit f5e88db into getsentry:master Nov 3, 2014
@clayzermk1
Copy link
Contributor Author

Thanks for the merge @mattrobenolt!

Hit me up if you'd like help testing, etc.

Cheers 🍻!

matghaleb pushed a commit to matghaleb/raven-js that referenced this pull request Sep 9, 2015
Added support for strict CommonJS per UMDJS.
kamilogorek pushed a commit that referenced this pull request Jun 12, 2018
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