Skip to content

Invisible name clash when importing a css file in same-named JS file #912

@WoodyWoodsta

Description

@WoodyWoodsta

Reproduction link or steps

https://stackblitz.com/edit/github-mcmfinbh?file=tsdown.config.mts

What is expected?

Can import a css file which is the same name as a js file.

What is actually happening?

When importing a css file which has the same name as the JS file, the output incudes he JS file name with 2 appended, and the output includes a require to the original file name (which does not exist).

Any additional comments?

I'm not sure if commonjs is to blame, or something else.

Metadata

Metadata

Assignees

No one assigned

    Type

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions