Skip to content

preserveModulesRoot exhibits different behaviors in rollup and tsdown #7733

@momei-LJM

Description

@momei-LJM

Reproduction link or steps

https://stackblitz.com/~/github.com/momei-LJM/tsdown_demo

preserveModulesRoot exhibits different behaviors in rollup and tsdown

tsdown,
Image

rollup:

Image

What is expected?

My expected behavior is consistent with Rollup: files in the main directory should be extracted and hoisted out of the main directory.

What is actually happening?

preserveModulesRoot: Files not hoisted to parent directory

Any additional comments?

No response

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions