Open williazz opened 9 months ago
Issue: I think the default permissions for GITHUB_TOKEN
are limited at the AWS level. Have to change when we have the chance
I like the idea behind this. That is, to gives us visibility into the size of the bundles we are releasing. This will be particularly helpful if and when we create multiple builds (e.g., without sigv4 or web vitals attribution).
However, I think this tool solves the wrong problem. This tool shows us the package size, when we are interested in the size of the bundle (i.e., the file "cwr.js"). The package doesn't account for things like dependencies (which are the bulk of the bundle size), minimization, or compression.
For example, I think we want something like the following table:
File | Size | Compressed Size |
---|---|---|
cwr.js | 218KB | 54KB |
cwr_min.js | 50KB | 10KB |
Analyzes the package size diff of every pull request, broken down by file. For example, https://github.com/williazz/aws-rum-web/pull/1#issuecomment-1743927215. Moving forward, this will help us keep aws-rum-web as small as possible.
The GitHub Action depends on third party package https://github.com/pkg-size/action
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.