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

tsx 语法解析失败 #28

Closed
a1235 opened this issue May 6, 2022 · 2 comments
Closed

tsx 语法解析失败 #28

a1235 opened this issue May 6, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@a1235
Copy link

a1235 commented May 6, 2022

入口文件如下:test.tsx,返回的结果只有入口文件

import my from './my'

function App(options) {
    return <>hello world</>
}

export default App

1651824648(1)
函数直接return null 的话是正常的

@sz-p sz-p self-assigned this May 6, 2022
@sz-p sz-p added the bug Something isn't working label May 6, 2022
sz-p added a commit that referenced this issue May 6, 2022
@sz-p
Copy link
Owner

sz-p commented May 6, 2022

update on v1.1.10

@sz-p sz-p closed this as completed May 6, 2022
@sz-p
Copy link
Owner

sz-p commented May 6, 2022

the typescript parser in recast is not support tsx.

using babel-ts parser to parse for now

benjamn/recast#535

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

No branches or pull requests

2 participants