Open3
NestJS+swc環境でtsxをコンパイルできるようにする

nest-cli.json
{
"$schema": "https://json.schemastore.org/nest-cli",
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"compilerOptions": {
"deleteOutDir": true,
"assets": ["**/*.html", "**/*.ttf"],
"builder": {
"type": "swc",
"options": { "extensions": [".ts", ".tsx", ".js", ".jsx"] }
},
"typeCheck": true
}
}

.swcrc
{
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": true
},
"transform": { "react": { "runtime": "automatic" } }
},
"sourceMaps": true
}

元々の設定にtsxがターゲットとして含まれていないっぽい