How to use the rollbar/src/merge function in rollbar

To help you get started, we’ve selected a few rollbar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kaliberjs / build / library / lib / rollbar.js View on Github external
export default function rollbar(options, nonSerializableRollbarConfig = '/* no non-serializable config */') {
  const config = JSON.stringify(merge(defaultOptions, options))
  const __html = `var _rollbarConfig = ${config};${nonSerializableRollbarConfig};${snippet}`
  return