It's smaller (as of 2019-01-05). The size of my application was reduced from 223KB to 194KB. After talking to Gary, he mentioned that James Smith had pointed him to the smaller legacy client, so I tried it out.
To keep using Bugsnag@2, grab this:
http://d2wy8f7a9ursnm.cloudfront.net/bugsnag-2.js
You can see the README for this version on the latest 2.x tag on GitHub
Following these instructions, I just saved the old file to my project, imported it for the side effect (since it defined a window.Bugsnag
global), and configured it:
import './vendor/bugsnag-small'
const startMonitoring = (userId) = {
const client = window.Bugsnag.noConflict()
client.apiKey = '1234567890'
client.disableLog = true
client.autoNotify = true
client.notifyHandler = 'xhr'
client.user = { id: userId }
return client
}
And then where my app boots up, I just invoke startMonitoring(42)
and I'm off to the races. In particular, I wasn't able to get it to report any exceptions unless I manually enabled autoNotify
(which should default to true) and notifyHandler
to 'xhr'
(which defaults to adding a magic pixel to the DOM, IIRC).