-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Bundle Reporter (Publish) The `publish` command will output a message of the "total upload" which includes script + modules showing the original size versus gzip size. * Added bundle reporter to the initial server start for remote `dev` * Worker script content is added to the modules processed for bundle reporter. * handle the .01 KiB variation in tests causing flakes * Handled this with an addition to the for stdout which masks the hundredth of a kilobyte variation (± .01 KiB) * nits by Sunil Co-authored-by: Sunil Pai <[email protected]>
- Loading branch information
1 parent
f6836b0
commit f7d362e
Showing
7 changed files
with
294 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"wrangler": patch | ||
--- | ||
|
||
feat: print bundle size during `publish` and `dev` | ||
|
||
This logs the complete bundle size of the Worker (as well as when compressed) during `publish` and `dev`. | ||
|
||
Via https://github.com/cloudflare/wrangler2/issues/405#issuecomment-1156762297) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.