Strip source generator attributes using [Conditional] #38
Labels
improvements ✨
Improvements to an existing functionality
introduce breaking changes 💥
This change would be a breaking change
mvvm-toolkit 🧰
Issues/PRs for the MVVM Toolkit
Projects
Currently, all attributes used for the source generator feature are preserved in the compiled binaries, which just results in unnecessary binary size given these attributes are only ever used to guide the source generators at build time. We can strip them from the final assemblies by leveraging the
[Conditional]
attribute and using a dummy constant that final users will not have. Additionally, we might also set a custom one that we can then document, to still offer advanced users the ability to opt-in into preserving them, if needed.The text was updated successfully, but these errors were encountered: