Skip to content

Introduces new flag for optimization hints - #38602

Closed
Ryan Delaney (rrdelaney) wants to merge 2 commits into
microsoft:masterfrom
rrdelaney:add-optimization-hints
Closed

Introduces new flag for optimization hints#38602
Ryan Delaney (rrdelaney) wants to merge 2 commits into
microsoft:masterfrom
rrdelaney:add-optimization-hints

Conversation

@rrdelaney

@rrdelaney Ryan Delaney (rrdelaney) commented May 15, 2020

Copy link
Copy Markdown

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

Microsoft Contribution License Agreements (msftclas) commented May 15, 2020

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@rrdelaney

Copy link
Copy Markdown
Author

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

@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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

6 participants