Closed
Description
Describe the bug
swc/crates/swc_ecma_parser/tests/tsc/inlineJsxFactoryDeclarations.tsx
will throw a parse error but actually should not.
Input code
import { dom } from "./renderer"
<h></h>
Config
{
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": true
},
"target": "es2015",
"loose": false,
"minify": {
"compress": false,
"mangle": false
}
},
"module": {
"type": "es6"
},
"minify": false,
"isModule": "unknown"
}
Link to the code that reproduces this issue
SWC Info output
No response
Expected behavior
parse success
Actual behavior
parse failed
Version
1.12.1