Skip to content

Commit

Permalink
fix - verbose bundle size output is no longer [object Object] (#97)
Browse files Browse the repository at this point in the history
* fix - verbose bundle size output is no longer [object Object]

* fix - verbose bundle size output is no longer [object Object]

* Revert "fix - verbose bundle size output is no longer [object Object]"

This reverts commit 3ccc389.

* chore - optional chaining removed

Co-authored-by: Omer Gurarslan <omer@asquared.uk>
  • Loading branch information
omerg and omerg committed Dec 21, 2022
1 parent 668b672 commit 4ea7693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react-native-bundle-visualizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ bundlePromise
result.bundles.forEach((bundle) => {
Object.keys(bundle.files).forEach((file) => {
console.log(
chalk.green(file + ', size: ' + bundle.files[file] + ' bytes')
chalk.green(file + ', size: ' + bundle.files[file].size + ' bytes')
);
});
});
Expand Down

0 comments on commit 4ea7693

Please sign in to comment.