Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: start tracking treeshakability (#179)
This diff adds size snapshot entry with esm bundle which allows to see that some part of the code is not treeshakable. This project is used by material-ui which provides only path imports which looks very scary (a lot of import statement). So this project should be treeshakable to let its users safely consumer from single entry point and do not care about big bundle size.
- Loading branch information
Showing
4 changed files
with
104 additions
and
33 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 |
---|---|---|
@@ -1,12 +1,26 @@ | ||
{ | ||
"dist/index.umd.js": { | ||
"bundled": 51215, | ||
"minified": 18354, | ||
"gzipped": 5879 | ||
"bundled": 50893, | ||
"minified": 18318, | ||
"gzipped": 5870 | ||
}, | ||
"dist/index.umd.min.js": { | ||
"bundled": 28017, | ||
"minified": 10703, | ||
"gzipped": 3585 | ||
"bundled": 26552, | ||
"minified": 10685, | ||
"gzipped": 3580 | ||
}, | ||
"dist/index.esm.js": { | ||
"bundled": 10870, | ||
"minified": 6168, | ||
"gzipped": 1936, | ||
"treeshaked": { | ||
"rollup": { | ||
"code": 5138, | ||
"import_statements": 137 | ||
}, | ||
"webpack": { | ||
"code": 5875 | ||
} | ||
} | ||
} | ||
} |
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
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