Skip to content

[turbopack] Tree shake w/ bar['foo'] syntax for star imports - #96319

Merged
sampoder merged 1 commit into
canaryfrom
sp/turbopack/cjs-strings
Jul 29, 2026
Merged

[turbopack] Tree shake w/ bar['foo'] syntax for star imports#96319
sampoder merged 1 commit into
canaryfrom
sp/turbopack/cjs-strings

Conversation

@sampoder

Copy link
Copy Markdown
Member

This adds tree-shaking support for this syntax:

import * as ns from './lib';
ns["foo"]

Instead of expanding the usage to All for this one, we can restrict ourself to just "foo".

See attached fixture.

@sampoder
sampoder requested a review from bgw July 28, 2026 22:35
@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Tests Passed

Commit: 66c241c

@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Stats skipped

Commit: 66c241c
View workflow run

@sampoder
sampoder merged commit fec0a51 into canary Jul 29, 2026
129 of 135 checks passed
@sampoder
sampoder deleted the sp/turbopack/cjs-strings branch July 29, 2026 17:42
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.

2 participants