TypeScript enums not properly inlined
Open
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 275
- PR merge metrics
- No merged PRs in 30d
Description
Currently running a fairly simple build script from [one of my package](https://github.com/mgcrea/pino-pretty-compact/blob/v1.1.2/package.json#L28), basically:
`tsup --entry src/index.ts --format cjs,esm --no-splitting --sourcemap --dts --clean --entry src/bin/cli.ts`
Unfortunately it does not properly inline the following enum: https://github.com/mgcrea/pino-pretty-compact/blob/v1.1.2/src/prettifier.ts#L56
It's currently manually inlined (for release) but just replace the number with the enum to test and rebuild.
Tried to remove all CLI options, but no more luck, it does not inline the enum (`tsc` works).
Any idea?
Contributor guide
Assessment
This issue has not been assessed yet.