Skip to content

[Bug]: unreachable dynamic chunks are kept #9061

@sapphi-red

Description

@sapphi-red

Reproduction link or steps

REPL

What is expected?

lazy-BUetEruU.js is not output because it is not used in root.js.

What is actually happening?

lazy-BUetEruU.js is output.

System Info

REPL 1.0.0-rc.15

Any additional comments?

If you set output.minify: false, you can see that the dynamic import is still there. This means the dynamic import is removed in the minification step.

Originally reported at vitejs/vite#21968

Metadata

Metadata

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions