-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Conversation
@@ -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), |
There was a problem hiding this comment.
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.
Added support for strict CommonJS per UMDJS.
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. |
I can test this later. That seems sorta sane. :) Still gross, but if it works... |
Nice, thanks for all your help Matt! 🍻 |
Bump on this, any chance we can get these changes merged so I can stop using my fork? 😜 |
Added support for CommonJS/browserify.
Thanks for the merge @mattrobenolt! Hit me up if you'd like help testing, etc. Cheers 🍻! |
Added support for strict CommonJS per UMDJS.
Per our conversation on IRC, a PR for CommonJS/browserify support. 🍻
#259
#253
#206