docs: describe output.autoExternal for Node server builds - #128
Closed
ScriptedAlchemy wants to merge 1 commit into
Closed
docs: describe output.autoExternal for Node server builds#128ScriptedAlchemy wants to merge 1 commit into
ScriptedAlchemy wants to merge 1 commit into
Conversation
Rsbuild 2.0.7 added output.autoExternal for node environments. With it enabled the default template's server output shrinks from 463 KB to 10 KB, dependencies stay in node_modules, and the built server runs unchanged, which matches React Router's Vite SSR default. Kept opt-in because single-file targets such as Cloudflare Workers rely on bundling. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
commit: |
Contributor
Benchmark results
|
Merging this PR will not alter performance
Comparing Footnotes
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documents Rsbuild's built-in
output.autoExternal(2.0.7+) as the way to keep dependencies out of the server bundle on Node hosts. Verified on the default template: server output 463 KB → 10 KB,react-router,react-dom/server,@react-router/node,isbotand friends left external,react-router-serveserves the app unchanged. This matches React Router's Vite SSR default and avoids bundling generated packages like Prisma. Kept opt-in because the Cloudflare example and other single-file targets rely on bundling.Docs only; no changeset.
🤖 Generated with Claude Code