You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.
sebastiandedeyne
changed the title
[Enhancement] Enable flare without setting globals / patching onerror etc.
Enable flare without setting globals / patching onerror etc.
Jan 24, 2024
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm creating a widget and my code will be imported into many third-party websites.
I only want to report errors that are relevant to the "widget", also it's not good manners if my code sets globals on the window object.
Looking at the code I can achieve this currently by using https://github.com/facade/flare-client-js/blob/master/packages/client/src/FlareClient.ts directly with my API key.
This also means that I need to use a forked version of the vite plugin to upload sourcemaps that enables not setting globals.
The text was updated successfully, but these errors were encountered: