Skip to content

Commit

Permalink
fix(custom): add code to preserve existing deps
Browse files Browse the repository at this point in the history
Issue: #62
  • Loading branch information
ankur-arch committed Dec 2, 2024
1 parent a2b3728 commit d2e06f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ export default defineNuxtModule<PrismaExtendedModule>({
nuxt.options.vite.optimizeDeps = defu(
nuxt.options.vite.optimizeDeps || {},
{
include: ["@prisma/nuxt > @prisma/client"],
include: [
...(nuxt.options.vite.optimizeDeps?.include || []),
"@prisma/nuxt > @prisma/client",
],
},
);
};
Expand Down

0 comments on commit d2e06f0

Please sign in to comment.