Skip to content

Commit

Permalink
chore(rsc): simplify noExternals config (#10220)
Browse files Browse the repository at this point in the history
Co-authored-by: Tobbe Lundberg <tobbe@tlundberg.com>
  • Loading branch information
jtoar and Tobbe committed Apr 7, 2024
1 parent bc5781b commit 06d5ccd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/vite/src/rsc/rscBuildAnalyze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ export async function rscBuildAnalyze() {
),
],
ssr: {
// We can ignore everything that starts with `node:` because it's not
// going to be RSCs
noExternal: /^(?!node:)/,
noExternal: true,
// TODO (RSC): Figure out what the `external` list should be. Right
// now it's just copied from waku, plus we added prisma
external: ['react', 'minimatch', '@prisma/client'],
Expand Down

0 comments on commit 06d5ccd

Please sign in to comment.