$ npx tsc -v
Version 5.1.3Bug description: Exports removed when using tsc.transpileModule, verbatimModuleSyntax: false and export identifier overlaps with type.
// exports.ts
import fooValue from "./values";
import type {Foo} from "./types";
const Foo: Foo = fooValue as any as Foo;
export {Foo};$ npm run compile
> compile
> tsc -p tsconfig.jsonResult:
// exports.js
import fooValue from "./values";
var Foo = fooValue;
export { Foo }; // export preserved$ npm run transpile
> transpile
> node transpile.mjsResult:
// exports.transpile.js
import fooValue from "./values";
var Foo = fooValue;
// exports missing