Closed mcdurdin closed 9 months ago
So this relates to const enum exports in Typescript. tsc resolves these and inlines the constants but esbuild does not. Three options that I can see:
export const enum
use export enum
and enable the isolatedModules
typescript flag throughout to ensure we don't leak these anywhere.export * from x
appears to export const enums but still only works with tsc.preserveConstEnums
everywhere.
With sourcemaps manually enabled:
Notes:
Additional related:
Original run: