Skip to content

fix: keep the react entry from bundling the core - #323

Merged
dsleepo merged 2 commits into
mainfrom
cursor/react-entry-share-core
Oct 12, 2026
Merged

dsleepo merged 2 commits into
mainfrom
cursor/react-entry-share-core

Conversation

@dsleepo

@dsleepo dsleepo commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

Mark every import external while building ./react so it shares the main entry. Size-limit fails CI if the copy returns.

Closes #322

dsleepo and others added 2 commits October 9, 2026 09:06
Mark every import external while building ./react so it
shares the main entry. Size-limit fails CI if the copy returns.

Co-authored-by: Cursor <cursoragent@cursor.com>
Size Limit 14 imports util.styleText, which Node 18 does not export.

Co-authored-by: Cursor <cursoragent@cursor.com>
@dsleepo
dsleepo force-pushed the cursor/react-entry-share-core branch from 5e988ae to 07506bf Compare October 9, 2026 06:26
@dsleepo dsleepo self-assigned this Oct 9, 2026
@dsleepo
dsleepo marked this pull request as ready for review October 9, 2026 06:27
@dsleepo
dsleepo merged commit 34117e3 into main Oct 12, 2026
8 checks passed
@dsleepo
dsleepo deleted the cursor/react-entry-share-core branch October 12, 2026 05:29
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.

v5: ./react inlines the core, shipping it twice alongside the main entry

3 participants