Skip to content

Commit

Permalink
RSC: Fix a prisma client warning during build (#10222)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Mar 15, 2024
1 parent 25b24c8 commit 14a2d0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/rsc/rscBuildAnalyze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export async function rscBuildAnalyze() {
// going to be RSCs
noExternal: /^(?!node:)/,
// TODO (RSC): Figure out what the `external` list should be. Right
// now it's just copied from waku
external: ['react', 'minimatch'],
// now it's just copied from waku, plus we added prisma
external: ['react', 'minimatch', '@prisma/client'],
resolve: {
externalConditions: ['react-server'],
},
Expand Down

0 comments on commit 14a2d0b

Please sign in to comment.