{"version":3,"file":"vueIntegration.js","sources":["../../../src/client/vueIntegration.ts"],"sourcesContent":["import { defineIntegration, GLOBAL_OBJ } from '@sentry/core';\nimport type { VueIntegrationOptions } from '@sentry/vue';\n\ntype Options = Omit;\n\n// Since the options object needs to cross the boundary between some builds (i.e. the nuxt module build and our client\n// SDK build) we cannot use a getter that is exported from here. Instead we'll pass the options object through a global\n// to the module.\nexport type GlobalObjWithIntegrationOptions = { _sentryNuxtVueIntegrationOptions?: Options };\n\n// The vue integration is actually set up in the Sentry Client Module. There it is set up as soon as the nuxt app object is available.\n// However, we need to export the vueIntegration from the Client SDK. This means all this integration does is store away\n// its options for the Sentry Client Module to pick them up when initializing the actual vueIntegration.\n\n/**\n * Add additional error and span instrumentation specialized for Vue.\n */\nexport const vueIntegration = defineIntegration((options: Options = {}) => {\n return {\n // NOTE: This name is different from the original vueIntegration's name.\n name: 'NuxtVueIntegration',\n setup() {\n (GLOBAL_OBJ as GlobalObjWithIntegrationOptions)._sentryNuxtVueIntegrationOptions = options;\n },\n };\n});\n"],"names":["defineIntegration","GLOBAL_OBJ"],"mappings":";;;;AAiBO,MAAM,cAAA,GAAiBA,sBAAA,CAAkB,CAAC,OAAA,GAAmB,EAAC,KAAM;AACzE,EAAA,OAAO;AAAA;AAAA,IAEL,IAAA,EAAM,oBAAA;AAAA,IACN,KAAA,GAAQ;AACN,MAACC,gBAA+C,gCAAA,GAAmC,OAAA;AAAA,IACrF;AAAA,GACF;AACF,CAAC;;;;"}