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.
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
2appended, and the output includes arequireto the original file name (which does not exist).Any additional comments?
I'm not sure if
commonjsis to blame, or something else.