Skip to content

[Bug]: Import paths of files/folders starting with . loose relative ./ prefix #5557

@I-Enderlord-I

Description

@I-Enderlord-I

Reproduction link or steps

https://repl.rolldown.rs/#eNptT7tqA0EM/BVFzSVwbPoN6dOkdrON8eqMjSwd+7APjvt3a30YG2NQoZFmNKMZB/QzHiTS5I659YL+gXvcNXgaNRWYYEh6gs59u7bsfoIE2alkZXKs+8/py0amIfQlVVp6TMoc9SLOaMNh/2TxZrOatYMF1in8whwEQGsZa/ENhAIwJsqUzvSvsTJlD82tb8QliFUQmm6JIw3byvdraIFuye8ZVrDavii6P2JW2Gji+GGfJntsMf3ZqLwtlAsuV9fPaqs=

What is expected?

The import path of .x.js in the produced index.js should read ./.x.js to mark it as a relative file path.

What is actually happening?

The import path of .x.js reads .x.js resulting in an error during execution.

System Info

Rolldown REPL

Any additional comments?

This also happens with folders starting with period and any other constellation that results in a relative path beginning with a period (unless it's ..) in the final output chunk.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions