-
-
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
feat(core): Add default behaviour for rewriteFramesIntegration
in browser
#11535
Conversation
size-limit report 📦
|
const root = options.root; | ||
const prefix = options.prefix || 'app:///'; | ||
|
||
const iteratee: StackFrameIteratee = |
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 re-shuffled the code a bit so we can test it more easily
} | ||
return frame; | ||
}); | ||
const isBrowser = 'window' in GLOBAL_OBJ && GLOBAL_OBJ.window !== undefined; |
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.
l: Can we just compress this to !!GLOBAL_OBJ.window
? I think that should be safe enough..?
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.
typescript sadness but yeah
Fixes #6423
Adds functionality on the browser for the
root
option.