Skip to content

Comments

Turbopack: properly remove unused TS enums with scope hoisting#90004

Open
DRoet wants to merge 3 commits intovercel:canaryfrom
DRoet:mischnic/scope-hoisting-pure-enum
Open

Turbopack: properly remove unused TS enums with scope hoisting#90004
DRoet wants to merge 3 commits intovercel:canaryfrom
DRoet:mischnic/scope-hoisting-pure-enum

Conversation

@DRoet
Copy link

@DRoet DRoet commented Feb 14, 2026

Attempt based on #88205. reserves SWC sentinel spans during scope-hoisting so PURE annotations survive module merging.

Closes #88009
Closes PACK-6424

@mischnic PTAL if this is the right approach

@nextjs-bot nextjs-bot added the Turbopack Related to Turbopack with Next.js. label Feb 14, 2026
@nextjs-bot
Copy link
Collaborator

nextjs-bot commented Feb 14, 2026

Allow CI Workflow Run

  • approve CI run for commit: 79afdae

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@codspeed-hq
Copy link

codspeed-hq bot commented Feb 14, 2026

Merging this PR will not alter performance

✅ 17 untouched benchmarks
⏩ 3 skipped benchmarks1


Comparing DRoet:mischnic/scope-hoisting-pure-enum (3c05075) with canary (9662feb)

Open in CodSpeed

Footnotes

  1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Turbopack Related to Turbopack with Next.js.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Turbopack not tree-shaking unused enum exports

3 participants