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
Support for @license and @preserve in dart2js #3954
Comments
Added Area-Dart2JS, Area-Language, Triaged labels. |
I don't see this as a language issue. It is an annotation that dart2js might look at in the context of deployment. I imagine it would look a bit differently: @license('licenseURI') MyClass { ...} which could produce either text or nice link in the output. Removed Area-Language label. |
Removed this from the Later milestone. |
Added this to the M2 milestone. |
Removed Priority-Medium label. |
Removed this from the M2 milestone. |
Added TriageForM5 label. |
Removed TriageForM5 label. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
This issue was originally filed by bernd.par...@gmail.com
Please consider adding support to dart2js for preserving Dart comments in the generated JavaScript.
I was thinking along the lines of what the closure compiler does for @license and @preserve:
https://developers.google.com/closure/compiler/docs/js-for-compiler#tags
For example:
/**
* @preserve Copyright 2009 SomeThirdParty.
* Here is the full license text and copyright
* notice for this file. Note that the notice can span several
* lines and is only terminated by the closing star and slash:
*/
Tells the compiler to insert the associated comment before the compiled code for the marked file. This annotation allows important notices (such as legal licenses or copyright text) to survive compilation unchanged. Line breaks are preserved.
Thank you!
The text was updated successfully, but these errors were encountered: