-
Notifications
You must be signed in to change notification settings - Fork 3.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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃彈 Update @ampproject/filesize
to 4.0.1 with new API
#27898
馃彈 Update @ampproject/filesize
to 4.0.1 with new API
#27898
Conversation
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.
Looks like the bundle size check failed. Is this expected?
I restarted the bundle size check and it worked successfully. |
@@ -196,6 +196,7 @@ | |||
"dist/v0/*-?.?.js", | |||
"dist/*.mjs", | |||
"dist/v0/*-?.?.mjs" | |||
] | |||
], | |||
"trackFormat": ["brotli"] |
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 filters out the reporting to just brotli correct?
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 option specifies which formats (compression formats) to track. In the case of AMP, the bundlesize check only cares about brotli
.
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.
I just noticed that yarn add
and prettier
do not agree on how this setting should be formatted inside package.json
. I've filed ampproject/filesize#83 to request that the suggestion in #26907 (comment) (a separate config file for filesize
) be implemented.
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 halves the time taken on Travis. LGTM!
Filesize 4.0.1 was released with improved concurrency, the ability to filter types of compression, and an updated API.
These changes have been applied in this PR.