You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1.Create a dart application which uses Mirrors
2.Add @MirrorsUsed to application for the correct reflected classes
3.Compile the program using dart2dart
What is the expected output? What do you see instead?
Dart output should not treeshake the dart classes that specified in @MirrorsUsed. The JS compiled version works correctly, but not the dart2js --output-type=dart version.
There is also no way to turn tree-shaking off. Unlike the javascript compile which you can just remove the MirrorsUsed annotation.
The text was updated successfully, but these errors were encountered:
Any chance this would get prioritized to your TODO list in the near future?
This issue currently prevents the user to create a single-file, minified .dart build (ie. package, or a "lib", as a single file much like js libs are distributed).
What steps will reproduce the problem?
1.Create a dart application which uses Mirrors
2.Add @MirrorsUsed to application for the correct reflected classes
3.Compile the program using dart2dart
What is the expected output? What do you see instead?
Dart output should not treeshake the dart classes that specified in @MirrorsUsed. The JS compiled version works correctly, but not the dart2js --output-type=dart version.
There is also no way to turn tree-shaking off. Unlike the javascript compile which you can just remove the MirrorsUsed annotation.
The text was updated successfully, but these errors were encountered: