Skip to content

Code split re-exports when using non-scope hoisting packager#10207

Merged
devongovett merged 1 commit into
v2from
split-re-exports-dev
Aug 30, 2025
Merged

Code split re-exports when using non-scope hoisting packager#10207
devongovett merged 1 commit into
v2from
split-re-exports-dev

Conversation

@devongovett

Copy link
Copy Markdown
Member

This enables code splitting across re-exports when using the non-scope hoisting packager. This significantly reduces bundle sizes when using libraries with barrel files, and not using scope hoisting (e.g. RSC static packager).

The packager injects resolutions for each symbol, and the prelude synthesizes a module that follows re-exports at runtime.

@devongovett devongovett merged commit cb9de9d into v2 Aug 30, 2025
15 of 17 checks passed
@devongovett devongovett deleted the split-re-exports-dev branch August 30, 2025 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant