esbuild has a format messages API: https://esbuild.github.io/api/#format-messages
It would be useful if a property was added to FormatMessagesOptions, like pathType: "absolute" | "relative" which allowed users to control the output format.
This particularly helps for two cases:
- Monorepo setups, where relative paths might not be unique. Here, it allows distinguishing paths and so users can directly click links to the files with errors.
- Automated log reading tools, like GitHub's pattern matchers, to show errors in CI more easily.
Similar discussion for TypeScript is here: microsoft/TypeScript#36221
esbuild has a format messages API: https://esbuild.github.io/api/#format-messages
It would be useful if a property was added to
FormatMessagesOptions, likepathType: "absolute" | "relative"which allowed users to control the output format.This particularly helps for two cases:
Similar discussion for TypeScript is here: microsoft/TypeScript#36221