Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSC: Inline dependencies during rsc build #10217

Merged
merged 4 commits into from
Mar 14, 2024
Merged

RSC: Inline dependencies during rsc build #10217

merged 4 commits into from
Mar 14, 2024

Conversation

Josh-Walker-GM
Copy link
Collaborator

@Josh-Walker-GM Josh-Walker-GM commented Mar 13, 2024

See the comment in the code as:
Externalize every file apart from node built-ins. We want vite/rollup to inline dependencies in the server bundle. This gets round runtime importing of "server-only". We have to do all imports because we can't rely on "server-only" being the name of the package. This is also actually more efficient because less files. Although, at build time it's likely way less efficient because we have to do so many files.

@Josh-Walker-GM Josh-Walker-GM self-assigned this Mar 13, 2024
@Josh-Walker-GM Josh-Walker-GM added the release:fix This PR is a fix label Mar 13, 2024
@Josh-Walker-GM Josh-Walker-GM added this to the RSC milestone Mar 13, 2024
@Josh-Walker-GM Josh-Walker-GM added the changesets-ok Override the changesets check label Mar 13, 2024
@Josh-Walker-GM Josh-Walker-GM merged commit 2abd2d9 into main Mar 14, 2024
44 checks passed
@Josh-Walker-GM Josh-Walker-GM deleted the jgmw-rsc/wip branch March 14, 2024 12:02
@Josh-Walker-GM Josh-Walker-GM modified the milestones: RSC, v8.0.0 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changesets-ok Override the changesets check release:fix This PR is a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants