From 452695168766ba6f1bdfa0197f76be5800a9e546 Mon Sep 17 00:00:00 2001 From: Julian Martin Date: Tue, 3 Dec 2019 13:09:26 +0100 Subject: [PATCH] fix: replace stringify stringify causes removal of functions on the object. We work around this with serialize --- lib/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugin.js b/lib/plugin.js index c941afb..420edad 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -1,7 +1,7 @@ import Vue from 'vue' import bugsnag from '@bugsnag/js' import bugsnagVue from '@bugsnag/plugin-vue' -const bugsnagClient = bugsnag(<%= JSON.stringify(options) %>) +const bugsnagClient = bugsnag(<%= serialize(options) %>) bugsnagClient.use(bugsnagVue, Vue) export default function ({ app }, inject) {