Skip to content

[Feature Request]: cross chunk dead code elimination depending on constant inlining / propagation #4786

@sapphi-red

Description

@sapphi-red

What problem does this feature solve?

esm-env is a popular package in the svelte ecosystem (code search), which exposes constants depending on the environment (e.g. browser) using exports field.

The ecosystem relied on the cross chunk dead code elimination to generate a smaller output.

bundler exporer

refs oxc-project/oxc#10843 (this issue is a more advanced version of that one)

What does the proposed API look like?

Not an API change.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions