Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Enable flare without setting globals / patching onerror etc. #118

Open
jongbelegen opened this issue Dec 4, 2023 · 0 comments
Open

Enable flare without setting globals / patching onerror etc. #118

jongbelegen opened this issue Dec 4, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jongbelegen
Copy link

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.

@sebastiandedeyne sebastiandedeyne added the enhancement New feature or request label Jan 24, 2024
@sebastiandedeyne 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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants