Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: Support outputting absolute paths in error messages #3023

Open
domdomegg opened this issue Mar 27, 2023 · 0 comments
Open

Comments

@domdomegg
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant