Skip to content

Jsx option not working since 0.12.4 #310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vpckso opened this issue Jun 10, 2025 · 1 comment
Open

Jsx option not working since 0.12.4 #310

vpckso opened this issue Jun 10, 2025 · 1 comment
Assignees
Labels
bug Something isn't working upstream

Comments

@vpckso
Copy link

vpckso commented Jun 10, 2025

Reproduction link or steps

#219 solution not working since 0.12.4

inputOptions: {
  jsx: "preserve",
}

What is expected?

jsx option should work as expected

What is actually happening?

result is same as jsx: "react-jsx"

Any additional comments?

workaround:

inputOptions: {
  jsx: "preserve",
  transform: undefined,
}

Because this line always add transform without checking target

tsdown/src/index.ts

Lines 283 to 285 in 3b98b8a

transform: {
target,
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream
Projects
None yet
Development

No branches or pull requests

3 participants