Skip to content

Commit 3a87a79

Browse files
author
Luca Forstner
committed
Add hint and set config in setup function
1 parent 0ac81c4 commit 3a87a79

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/nuxt/src/client/vueIntegration.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ export type GlobalObjWithIntegrationOptions = { _sentryNuxtVueIntegrationOptions
2626
* Add additional error and span instrumentation specialized for Vue.
2727
*/
2828
export const vueIntegration = defineIntegration((options: Options = {}) => {
29-
(GLOBAL_OBJ as GlobalObjWithIntegrationOptions)._sentryNuxtVueIntegrationOptions = options;
3029
return {
30+
// NOTE: This name is different from the original vueIntegration's name.
3131
name: 'NuxtVueIntegration',
32+
setup() {
33+
(GLOBAL_OBJ as GlobalObjWithIntegrationOptions)._sentryNuxtVueIntegrationOptions = options;
34+
},
3235
};
3336
});

0 commit comments

Comments
 (0)