Skip to content

Commit

Permalink
fix(rollbar): transpile rollbar package
Browse files Browse the repository at this point in the history
  • Loading branch information
jairoblatt committed Nov 23, 2023
1 parent a14c0e8 commit 769fa50
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/module.ts
Expand Up @@ -38,6 +38,11 @@ export default defineNuxtModule<ModuleOptions>({
nuxt: '^3',
},
},
hooks: {
'vite:extendConfig': (config) => {
config.optimizeDeps?.include?.push('rollbar');
},
},
defaults: {
serverAccessToken: '',
clientAccessToken: '',
Expand All @@ -54,6 +59,7 @@ export default defineNuxtModule<ModuleOptions>({
);

nuxt.options.build.transpile.push(resolve('runtime'));
nuxt.options.build.transpile.push('rollbar');

addImports([
{
Expand Down

0 comments on commit 769fa50

Please sign in to comment.