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

MirrorsUsed is not respected for dart2dart output #15476

Closed
TedSander opened this issue Dec 5, 2013 · 2 comments
Closed

MirrorsUsed is not respected for dart2dart output #15476

TedSander opened this issue Dec 5, 2013 · 2 comments
Labels
closed-not-planned Closed as we don't intend to take action on the reported issue

Comments

@TedSander
Copy link
Contributor

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.

@sgjesse
Copy link
Contributor

sgjesse commented Dec 6, 2013

Added Area-Dart2Dart, Triaged labels.

@DartBot
Copy link

DartBot commented Apr 3, 2015

This comment was originally written by sa...@headbanggames.com


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).

@sethladd sethladd added the closed-not-planned Closed as we don't intend to take action on the reported issue label Jul 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-not-planned Closed as we don't intend to take action on the reported issue
Projects
None yet
Development

No branches or pull requests

5 participants