Skip to content

[Bug]: generates circular import is generated when preserveEntrySignatures: false + manualChunks #5536

@sapphi-red

Description

@sapphi-red

Reproduction link or steps

bundler explorer

What is expected?

The output to be same with Rollup.

What is actually happening?

The output contains a circular import and the behavior is different from the input.

System Info

1.0.0-beta.29

Any additional comments?

Since manualChunks does have a note that it would change the execution order, this can be treated as an expected behavior. That said, it would be nice if the output is aligned with Rollup.

I encountered this in plugin-vue's playground and fixed on plugin-vue's repo side (vitejs/vite-plugin-vue#640).

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions