Skip to content

Commit

Permalink
chore: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Oct 6, 2024
1 parent 0cc2969 commit 44fa3cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions minimal/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,17 @@ const reactServerViteConfig: InlineConfig = {
},
ssr: {
// bundle react-server runtime
// NOTE:
// technically this only needs to include packages which imports react,
// which can be collected by vitefu's crawlFrameworkPkgs
// https://github.com/hi-ogawa/vite-plugins/blob/9c39f3db453520f73bba9689ff64f9839591e1f6/packages/react-server/src/plugin/index.ts#L535-L544
noExternal: true,
resolve: {
conditions: ["react-server"],
},
optimizeDeps: {
include: [
// `noExternal` cjs needs to be optimized
"react",
"react/jsx-runtime",
"react/jsx-dev-runtime",
Expand Down

0 comments on commit 44fa3cb

Please sign in to comment.