-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
Minify DEV bundles with closure #29809
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
The size diff is too large to display in a single comment. The CircleCI job contains an artifact called 'sizebot-message.md' with the full message. |
The goal is to improve speed of the development by inlining and DCE unused branches. We have the ability to preserve some variable names and pretty print in the production version so might as well do the same with DEV.
@@ -43,6 +43,7 @@ function willCoercionThrow(value: mixed): boolean { | |||
} | |||
} | |||
|
|||
/** @noinline */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a fun one. Closure doesn't think '' +
can throw so it DCE this whole set of warnings. We'll have to watch out for stuff like that. Avoiding the inlining fixes that.
Luckily this was caught by build tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does Closure keep this comment? I remember we had a similar one in warning() but not sure if it’s gone now.
The goal is to improve speed of the development by inlining and DCE unused branches. We have the ability to preserve some variable names and pretty print in the production version so might as well do the same with DEV. DiffTrain build for commit c2ae9e2.
The goal is to improve speed of the development by inlining and DCE unused branches.
We have the ability to preserve some variable names and pretty print in the production version so might as well do the same with DEV.