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

🏗 Report and store the bundle size of alternate runtime and extension files #25042

Merged

Conversation

danielrozenberg
Copy link
Member

build-system/tasks/bundle-size.js Show resolved Hide resolved
@@ -208,7 +213,7 @@ function getLocalBundleSize() {
cyan(shortSha(gitCommitHash())) + '.'
);
}
getBrotliBundleSize();
getBrotliBundleSizes();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the point of this call? Should this function be returning something? JSDoc would help, but also not clear if there's any point to this function call

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getBrotliBundleSizes prints its own logs. @rsimha added the getLocalBundleSize() method originally, I'm just updating here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the point of this is just to log stuff?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's a debugging thing

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -208,7 +213,7 @@ function getLocalBundleSize() {
cyan(shortSha(gitCommitHash())) + '.'
);
}
getBrotliBundleSize();
getBrotliBundleSizes();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@danielrozenberg danielrozenberg merged commit 4aeb7c2 into ampproject:master Oct 14, 2019
@danielrozenberg danielrozenberg deleted the bundle-size-multi-file branch October 14, 2019 19:15
micajuine-ho pushed a commit to micajuine-ho/amphtml that referenced this pull request Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants