Skip to content

Other frameworks

The standalone browser SDK works with Vue, Angular, and SvelteKit without a React adapter. Load the script from your BugFence server, then initialize it only in the browser.

<script src="https://bugs.example.com/sdk/bugfence.min.js" defer></script>

Call BugFence.init() from a client-only lifecycle:

  • Vue 3: initialize from onMounted() or your browser-only entry point.
  • Angular: initialize from a browser-only service or application initializer.
  • SvelteKit: initialize from onMount() and guard with the browser flag.

Use the same config shape documented in Vanilla JavaScript. Do not import the React integration package for these frameworks. For server-rendered apps, defer SDK access until the client is mounted.