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

Introduces new flag for optimization hints #38602

Closed
wants to merge 2 commits into from

Conversation

rrdelaney
Copy link

@rrdelaney rrdelaney commented May 15, 2020

Fixes #38374

This is an implementation of the addOptimizationHints compiler flag suggested in #38374. The intent of this feature is to allow must users to receive the benefits of the /** @class */ and IIFE wrapper introduced by #32011, while being able to opt-out if needed. In our case, opting out is helpful because we have an optimization toolchain that attempts to understand and decompose classes rather than treating them as an opaque value.

This is based on PR #38566 to include that bug fix.

As far as the name goes, I am not tied to addOptimizationHints at all, it's just an example. I am very open to changing the name, description, and default value for this compiler option. Also if I missed some places new compiler options need to be introduced or documented please point them out 😄

@msftclas
Copy link

msftclas commented May 15, 2020

CLA assistant check
All CLA requirements met.

@sandersn sandersn added For Uncommitted Bug PR for untriaged, rejected, closed or missing bug Experiment A fork with an experimental idea which might not make it into master labels May 20, 2020
@rrdelaney
Copy link
Author

Closing this out, please see #38374 (comment) for our write up. Thanks for taking the time to look at this!

@rrdelaney rrdelaney closed this May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Experiment A fork with an experimental idea which might not make it into master For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Introduce new flag for minifier optimization hints
5 participants