Skip to content
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

@swc/core will turn > in jsx code into >, causing syntax errors #9758

Closed
Yekongs opened this issue Nov 25, 2024 · 1 comment · Fixed by #9762
Closed

@swc/core will turn > in jsx code into >, causing syntax errors #9758

Yekongs opened this issue Nov 25, 2024 · 1 comment · Fixed by #9762
Labels
Milestone

Comments

@Yekongs
Copy link

Yekongs commented Nov 25, 2024

Describe the bug

{
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": true,
"decorators": true
},
"experimental": {
"disableBuiltinTransformsForInternalTesting": true
}
},
}
This problem occurs when disableBuiltinTransformsForInternalTesting is true

Input code

No response

Config

{
  "jsc": {
    "parser": {
      "syntax": "typescript",
      "tsx": true,
      "decorators": true
    },
    "experimental": {
      "disableBuiltinTransformsForInternalTesting": true
    }
  },
}

Playground link (or link to the minimal reproduction)

https://play.swc.rs/?version=1.9.3&code=H4sIAAAAAAAAA8vMLcgvKlEISk1MLlFIK8rPVVAvArHVrbm4UivAcmmlecklmfl5CiGpxSUamgrVXAoKRaklpUV5ChpApoKCTUpmmUJyTmJxsV9ibqptdQlQXa0dWAooWVyQmGenll5irfC0f%2FOTHV0vlk96sW7f873rbPTBUpjqnuyf%2B2J948v2ic%2FXLXw%2BoQ1ZnY0%2B0C4QU9Oaq5YLACTIcZW9AAAA&config=H4sIAAAAAAAAA1WNMQ7CMAxF954iyswJGBmQ2HsBkxoUlCbRtyu1qnp3TFsq2Pzfk57nxjn%2FkuDPbrbTRiUI49hGZMpKoxGvU2UJiFX96WtVPkox8IE6DgWkBbKbVSyb9zxWRuzZoun3TReF7okvQ0wacwvK8ijo5Vpwy8rIlFoWU8%2B%2FarOWlzfJVPWiyQAAAA%3D%3D

SWC Info output

No response

Expected behavior

> should be kept and should not be turned into >

Actual behavior

No response

Version

1.9.3

Additional context

No response

@swc-bot
Copy link
Collaborator

swc-bot commented Jan 1, 2025

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@swc-project swc-project locked as resolved and limited conversation to collaborators Jan 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging a pull request may close this issue.

3 participants