This repository is a reproduction for a TypeScript bug
-
Clone this repository:
git clone https://github.com/maxpatiiuk/typescript-printer-tsx-syntax-error
-
Install TypeScript:
npm install
-
Run the minimal reproduction:
node index.js
See that the original <T,>
is printed as <T>
, which causes a syntax error,
and fails to parse in ESBuild.