File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ const formatBytes = (bytes) => {
1616
1717const analyze = ( bundle , opts = { } , format = false ) => {
1818 let { root, limit, filter } = opts ;
19+ root = root || ( process && process . cwd ? process . cwd ( ) : null ) ;
1920 let deps = { } ;
2021 let entrySize ;
2122 let bundleSize = 0 ;
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ const formatBytes = (bytes) => {
1414
1515export const analyze = ( bundle , opts = { } , format = false ) => {
1616 let { root, limit, filter } = opts
17+ root = root || ( process && process . cwd ? process . cwd ( ) : null )
1718 let deps = { }
1819 let entrySize
1920 let bundleSize = 0
Original file line number Diff line number Diff line change 1919 "keywords" : [
2020 " rollup" ,
2121 " plugin" ,
22+ " config" ,
2223 " import" ,
2324 " bundle" ,
2425 " file" ,
2728 " metrics" ,
2829 " analysis" ,
2930 " analyze" ,
31+ " analyzer" ,
3032 " bloat"
3133 ],
3234 "author" : " Andrew Carpenter (https://github.com/doesdev)" ,
You can’t perform that action at this time.
0 commit comments