Open
1 of 1 issue completedDescription
Describe the bug
The test case in fn issue_2339_1()
contains tsx syntax that should be invalid, but SWC incorrectly parses it without errors.
Input code
// .tsx
const t = <T>() => {
// 1
/* 2 */
test;
};
Config
{
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": true
},
"target": "es2015",
"loose": false,
"minify": {
"compress": false,
"mangle": false
}
},
"module": {
"type": "es6"
},
"minify": false,
"isModule": false
}
Link to the code that reproduces this issue
SWC Info output
Expected behavior
throw error.
Actual behavior
parse success.
Version
1.12.0