-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: Build metadata as first-class, typed property of build result #633
Comments
Well put. I already have my eye on this change, but it would be a breaking change so I'm waiting until the 0.9.0 release.
The metadata types are already published: Lines 214 to 238 in 36efd93
No need to build your own potentially divergent types. |
Great news to hear that this is on your radar @evanw. I wonder if you have any ideas about what sort of metadata you're thinking about including. I understand that this is basically an append-only contract (because semver) 😅 so you might be reluctant to add everything and the kitchen sink in there. From my perspective there is likely some metadata that is already available in-memory that would be interesting for consumers. I'd love to see the following be available (not sure whether at the input file or output file granularity) for
I'd love to hear what you have in mind! |
Hi @evanw, I've kept on playing with For example, all fields of the |
When my use-case requires looking at the build metadata, it feels like some non-value-added work is required to extract this from emitted files. When using esbuild programmatically, this is especially true. I would love if the build metadata could become part of the explicit build result API. It would make using esbuild safer since consumers wouldn't need to build their own, potentially divergent types for the extracted metadata.
The text was updated successfully, but these errors were encountered: