Skip to content

[Bug]: Unexpected file conversion #5067

@alpheusmtx

Description

@alpheusmtx

Reproduction link or steps

https://github.com/alpheustangs/rolldown-unexpected-file-conversion

What is expected?

When transforming x.jsx and x.tsx to both cjs and esm format, x.js and x.mjs is expected.

What is actually happening?

After the transformation, x.jsx.js, x.jsx.mjs, x.tsx.js, x.tsx.mjs is shown instead of x.js and x.,js.

System Info

System:
  OS: Linux 6.11 Ubuntu 24.04.2 LTS 24.04.2 LTS (Noble Numbat)
  CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700F
  Memory: 19.17 GB / 31.19 GB
  Container: Yes
  Shell: 5.9 - /usr/bin/zsh
Binaries:
  Node: 24.2.0 - ~/.local/share/mise/installs/node/24.2.0/bin/node
  Yarn: 4.9.2 - ~/.local/share/mise/installs/yarn/4.9.2/bin/yarn
  npm: 11.3.0 - ~/.local/share/mise/installs/node/24.2.0/bin/npm
  pnpm: 10.12.2 - ~/.local/share/mise/installs/pnpm/10.12.2/pnpm
  bun: 1.2.17 - ~/.local/share/mise/installs/bun/1.2.17/bin/bun
Browsers:
  Chrome: 138.0.7204.49
  Chromium: 137.0.7151.103

Any additional comments?

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions